xtd 0.2.0
Loading...
Searching...
No Matches

◆ right_to_left() [1/2]

virtual xtd::forms::right_to_left xtd::forms::control::right_to_left ( ) const
virtualnoexcept

Gets a value indicating whether control's elements are aligned to support locales using right-to-left fonts.

Returns
One of the xtd::forms::right_to_left values. The default is xtd::forms::right_to_left::inherit.
Remarks
The xtd::forms::control::right_to_left property is an ambient property. An ambient property is a control property that, if not set, is retrieved from the parent control. For example, a xtd::forms::button will have the same xtd::forms::control::back_color as its parent xtd::forms::form by default. For more information about ambient properties, see the ambient_properties guide.
The xtd::forms::control::right_to_left property is used for international applications where the language is written from right to left, such as Hebrew or Arabic. When this property is set to xtd::forms::right_to_left::yes, control elements that include text are displayed from right to left.
Note
If the value of the xtd::forms::control::right_to_left property is changed at run time, only raw text without formatting is preserved.
Remarks
The following are a few examples of how control elements are affected by the xtd::forms::control::right_to_left property value of xtd::forms::right_to_left::yes :
Notes to Inheritors
When overriding the xtd::forms::control::right_to_left property in a derived class, use the base class's xtd::forms::control::right_to_left property to extend the base implementation. Otherwise, you must provide all the implementation. You are not required to override both the get and set accessors of the xtd::forms::control::right_to_left property; you can override only one if needed.