Skybound Rebar

ControlRenderer.RtlTranslate Method (Int32)

Returns the given x-coordinate translated within the bounds of the current renderer to support right-to-left layouts.

[Visual Basic]
Overloads Public Function RtlTranslate( _
   ByVal x As Integer _
) As Integer
[C#]
public int RtlTranslate(
   int x
);

Parameters

x
An x-coordinate relative to the left edge of Bounds.

Return Value

An Int32 value that is translated within the bounds of the control.

Remarks

When RightToLeft is false, this method simply returns the Int32 specified in x. Otherwise, the coordinate is flipped across the y-axis at the center point of the control's bounds. This is useful for supporting right-to-left layouts.

See Also

ControlRenderer Class | Skybound.Rebar.Rendering Namespace | ControlRenderer.RtlTranslate Overload List