Back to Devexpress

LayoutSerializationOptions Members

windowsforms-devexpress-dot-xtralayout-dot-layoutserializationoptions-dot-underscore-members.md

latest11.0 KB
Original Source

LayoutSerializationOptions Members

Contains options that specify how the LayoutControl’s layout is saved to and restored from a data store (an XML file, a stream or the system registry).

Constructors

NameDescription
LayoutSerializationOptions()Initializes a new instance of the LayoutSerializationOptions class with default settings.

Properties

NameDescription
DiscardOldItemsGets or sets whether the items that exist in a layout when it’s restored, but that don’t exist in the current layout control, should be discarded or added to the control.
RecreateIFixedItemsGets or sets whether or not secondary layout items should be re-created when restoring the LayoutControl’s layout.
RestoreAppearanceItemCaptionGets or sets whether the appearance settings of item captions are loaded when a layout is loaded from a data store.
RestoreAppearanceTabPageGets or sets whether the appearance settings of tab pages are loaded when a layout is loaded from a data store.
RestoreGroupEnabledGets or sets whether layout items’ state settings (LayoutGroup.Enabled) are restored when restoring the control’s layout from a data store.
RestoreGroupPaddingGets or sets whether layout groups’ padding settings (BaseLayoutItem.Padding) are restored when restoring the control’s layout from a data store.
RestoreGroupSpacingGets or sets whether layout groups’ spacing settings (BaseLayoutItem.Spacing) are restored when restoring the control’s layout from a data store.
RestoreLayoutGroupAppearanceGroupGets or sets whether the appearance settings of groups are loaded when a layout is loaded from a data store.
RestoreLayoutItemCustomizationFormTextGets or sets whether values of layout items’ BaseLayoutItem.CustomizationFormText properties are restored when restoring the control’s layout from a data store.
RestoreLayoutItemEnabledGets or sets whether layout items’ state settings (LayoutControlItem.Enabled) are restored when restoring the control’s layout from a data store.
RestoreLayoutItemPaddingGets or sets whether layout items’ padding settings (BaseLayoutItem.Padding) are restored when restoring the control’s layout from a data store.
RestoreLayoutItemSpacingGets or sets whether layout items’ spacing settings (BaseLayoutItem.Spacing) are restored when restoring the control’s layout from a data store.
RestoreLayoutItemTextGets or sets whether layout items’ captions are restored when restoring the control’s layout from a data store.
RestoreRootGroupPaddingGets or sets whether the layout root group’s padding settings (BaseLayoutItem.Padding) are restored when restoring the control’s layout from a data store.
RestoreRootGroupSpacingGets or sets whether the layout root group’s spacing settings (BaseLayoutItem.Spacing) are restored when restoring the control’s layout from a data store.
RestoreTabbedGroupPaddingGets or sets whether tabbed groups’ padding settings (BaseLayoutItem.Padding) are restored when restoring the control’s layout from a data store.
RestoreTabbedGroupSpacingGets or sets whether tabbed groups’ spacing settings (BaseLayoutItem.Spacing) are restored when restoring the control’s layout from a data store.
RestoreTextToControlDistanceGets or sets whether values of the TextToControlDistance properties (BaseLayoutItem.TextToControlDistance and LayoutGroup .OptionsItemText.TextToControlDistance) are restored when you load the control’s layout from a data store.
StoreAppearanceGets or sets whether the control’s appearance settings are stored (restored) when the layout is saved to (loaded from) storage.
StoreEnabledStateGets or sets whether “enabled” states of layout items are stored (restored) when the layout is saved to (loaded from) storage.
StorePrintOptionsGets or sets whether print settings are stored (restored) when the layout is saved to (loaded from) storage.
StoreSpaceOptionsGets or sets whether padding, margin, and distance settings are stored (restored) when the layout is saved to (loaded from) storage.
StoreTextGets or sets whether captions of layout items and groups are stored (restored) when the layout is saved to (loaded from) storage.

Methods

NameDescription
Assign(BaseOptions)Copies options from the specified object to the current object.
BeginUpdate()Locks the BaseOptions object by disallowing visual updates until the EndUpdate or CancelUpdate method is called. Inherited from BaseOptions.
CancelUpdate()Unlocks the BaseOptions object after it has been locked by the BeginUpdate method, without causing an immediate visual update. Inherited from BaseOptions.
EndUpdate()Unlocks the BaseOptions object after a call to the BeginUpdate method and causes an immediate visual update. Inherited from BaseOptions.
Equals(Object, Object) staticDetermines whether the specified object instances are considered equal. Inherited from Object.
Equals(Object)Determines whether the specified object is equal to the current object. Inherited from Object.
GetHashCode()Serves as the default hash function. Inherited from Object.
GetType()Gets the Type of the current instance. Inherited from Object.
MemberwiseClone() protectedCreates a shallow copy of the current Object. Inherited from Object.
ReferenceEquals(Object, Object) staticDetermines whether the specified Object instances are the same instance. Inherited from Object.
Reset()Resets all options to their default values. Inherited from BaseOptions.
ToString()Returns a string representing the currently enabled options. Inherited from BaseOptions.

See Also

LayoutSerializationOptions Class

DevExpress.XtraLayout Namespace