Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

public bool UseParentAutoScaleFactor { get; set; }

#Property Value

Type Description
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 Type Path 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