Table of Contents

Method GetRightSideElement

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

GetRightSideElement()

Retrieves the element displayed on the right side based on the current configuration.

protected virtual object? GetRightSideElement()

Returns

object

An object representing the right-side element. Returns null if no element is configured or if the configuration is unrecognized. Possible return values include:

<ul><li><a href="https://learn.microsoft.com/dotnet/csharp/language-reference/keywords/null">null</a> if <xref href="Alternet.UI.SpeedButton.RightSideElementKind" data-throw-if-not-resolved="false"></xref>
is <xref href="Alternet.UI.SpeedButton.RightSideElementKind.None" data-throw-if-not-resolved="false"></xref>.</li><li>A string representing the
shortcut text if <xref href="Alternet.UI.SpeedButton.RightSideElementKind" data-throw-if-not-resolved="false"></xref> is <xref href="Alternet.UI.SpeedButton.RightSideElementKind.KeyGesture" data-throw-if-not-resolved="false"></xref>.</li><li>The value of <xref href="Alternet.UI.SpeedButton.RightSideText" data-throw-if-not-resolved="false"></xref> if <xref href="Alternet.UI.SpeedButton.RightSideElementKind" data-throw-if-not-resolved="false"></xref> is <xref href="Alternet.UI.SpeedButton.RightSideElementKind.Text" data-throw-if-not-resolved="false"></xref>.</li></ul>

Remarks

Override this method in a derived class to customize the behavior for determining the right-side element.