Skybound Rebar

ControlRenderer.RtlTranslate Method (Int32, Int32, Int32, Int32)

Translates a rectangle within the bounds of the current renderer to support right-to-left layouts.

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

Parameters

x
The x-coordinate of the rectangle to translate.
y
The y-coordinate of the rectangle to translate.
width
The width of the rectangle to translate.
height
The height of the rectangle to translate.

Return Value

A Rectangle structure that is translated within the bounds of the control.

Remarks

When RightToLeft is false, this method simply returns the rectangle created from x, y, width and height. Otherwise, the rectangle 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