Class ChildFrameBarManager
The ChildFrameBarManager manages the menus and tool bars of a child window (in an MDI scenario), in the XP Menus framework.
Implements
Inherited Members
Namespace: Syncfusion.Windows.Forms.Tools.XPMenus
Assembly: Syncfusion.Tools.Windows.dll
Syntax
public class ChildFrameBarManager : BarManager, IThemeProvider, IDisposable, ISupportInitialize, IBarItemsRepository, IDeserializationCallback, IIgnoreWorkingArea, IVisualStyle, ICloneable, ISerializable
Remarks
Make sure to take a look at the BarManager class's documentation before you start using this derived class.
Always associate an instance of this class with a form that will be parented to another form (making it a child Form in an MDI scenario).
Note that in an MDI scenario, optionally you can provide the MainFrameBarManager prior knowledge of the all the child form types that it might parent, in order that the menus and tool bars provide a seamless interface to the user even though they are part of different child forms' BarManager. You do this via the MainFrameBarManager's RegisterMdiChildTypes(Type[]) method.
If you do not call the RegisterMdiChildTypes method, the child menus will be added/merged with the parent menus as and when the child forms are added to the mdi parent.
Examples
Take a look at our XPMenus samples under the Tools\Samples\Menus Package folder for usage example.
Constructors
ChildFrameBarManager()
Creates an instance of the ChildFrameBarManager and sets it's defaults.
Declaration
public ChildFrameBarManager()
ChildFrameBarManager(IContainer, Form)
Creates a new instance of the ChildFrameBarManager class.
Declaration
public ChildFrameBarManager(IContainer container, Form form)
Parameters
Type | Name | Description |
---|---|---|
System.ComponentModel.IContainer | container | The logical container parenting this instance. |
System.Windows.Forms.Form | form | The form to which this instance will be associated. |
ChildFrameBarManager(SerializationInfo, StreamingContext)
Declaration
protected ChildFrameBarManager(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
System.Runtime.Serialization.SerializationInfo | info | |
System.Runtime.Serialization.StreamingContext | context |
ChildFrameBarManager(Form)
Overloaded. Creates a new instance of the ChildFrameBarManager class.
Declaration
public ChildFrameBarManager(Form form)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Forms.Form | form | The form to which this instance will be associated. |
Properties
RightToLeft
Indicates whether the component should draw right-to-left for RTL languages. (overridden property)
Declaration
public override RightToLeft RightToLeft { get; }
Property Value
Type |
---|
System.Windows.Forms.RightToLeft |
Overrides
Methods
Clone()
Creates a clone of this ChildFrameBarManager instance.
Declaration
public object Clone()
Returns
Type | Description |
---|---|
System.Object | An object that has similar properties to this ChildFrameBarManager. |
Remarks
Creates a new instance of ChildFrameBarManager and calls the CopyTo(BarManager) method to copy over properties.
GetObjectData(SerializationInfo, StreamingContext)
Gets the Object data. (overridden method)
Declaration
public override void GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
System.Runtime.Serialization.SerializationInfo | info | |
System.Runtime.Serialization.StreamingContext | context |
Overrides
Explicit Interface Implementations
ICloneable.Clone()
Declaration
object ICloneable.Clone()
Returns
Type |
---|
System.Object |