Back to Devexpress

OptionsView.UseParentAutoScaleFactor Property

windowsforms-devexpress-dot-xtralayout-dot-optionsview.md

latest2.7 KB
Original Source

OptionsView.UseParentAutoScaleFactor Property

Gets or sets whether indents between elements in the LayoutControl are automatically adjusted, based on the owning container’s auto-scale settings.

Namespace : DevExpress.XtraLayout

Assembly : DevExpress.XtraLayout.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
public bool UseParentAutoScaleFactor { get; set; }
vb
Public Property UseParentAutoScaleFactor As Boolean

Property Value

TypeDescription
Boolean

true if indents between elements in the LayoutControl are automatically adjusted based on the owning container’s auto-scale settings; otherwise, false.

|

Property Paths

You can access this nested property as listed below:

Object TypePath to UseParentAutoScaleFactor
LayoutControl

.OptionsView .UseParentAutoScaleFactor

|

Remarks

Auto-scale settings of the LayoutControl’s owning container are specified by the System.Windows.Forms.ContainerControl.AutoScaleMode property. If the UseParentAutoScaleFactor property is enabled, the amount of space between the LayoutControl’s elements is automatically adjusted, based on the auto-scale settings (for instance, according to the Windows DPI settings).

Font settings of layout items are not affected by the UseParentAutoScaleFactor property. To customize the font settings of items within the LayoutControl you can use the appearance mechanism (see Appearances). Alternatively, you can consider changing the default font for all DevExpress controls in your application, using the AppearanceObject.DefaultFont property.

See Also

DefaultFont

OptionsView Class

OptionsView Members

DevExpress.XtraLayout Namespace