Class StaticBarItem
Represents a bar item that could be used as a label for an adjacent bar item.
Implements
Inherited Members
Namespace: Syncfusion.Windows.Forms.Tools.XPMenus
Assembly: Syncfusion.Tools.Windows.dll
Syntax
public class StaticBarItem : BarItemEx, IChangeNotifyingItem, ICustomTypeDescriptor, IDataBindingSupport, ICloneable, ISerializable
Remarks
The StaticBarItem does not respond to user mouse click and move.
Constructors
StaticBarItem()
Overloaded. Creates a new instance of the StaticBarItem class with default settings.
Declaration
public StaticBarItem()
StaticBarItem(SerializationInfo, StreamingContext)
Declaration
protected StaticBarItem(SerializationInfo info, StreamingContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Runtime.Serialization.SerializationInfo | info | |
| System.Runtime.Serialization.StreamingContext | context |
StaticBarItem(String)
Creates a new insatnce of the StaticBarItem class and initializes its Text property.
Declaration
public StaticBarItem(string text)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | text |
Properties
Checked
Declaration
public override bool Checked { get; set; }
Property Value
| Type |
|---|
| System.Boolean |
Overrides
Enabled
Declaration
public override bool Enabled { get; set; }
Property Value
| Type |
|---|
| System.Boolean |
Overrides
FlatBorderColor
Gets or sets the color of the flat border around this item when parented by a Bar (toolbar).
Declaration
public virtual Color FlatBorderColor { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Drawing.Color | A System.Drawing.Color value. Default is Color.Empty. |
IsRecentlyUsedItem
Declaration
public override bool IsRecentlyUsedItem { get; set; }
Property Value
| Type |
|---|
| System.Boolean |
Overrides
Shortcut
Declaration
public override Shortcut Shortcut { get; set; }
Property Value
| Type |
|---|
| System.Windows.Forms.Shortcut |
Overrides
Methods
Clone()
Creates a clone of this StaticBarItem instance.
Declaration
public override object Clone()
Returns
| Type | Description |
|---|---|
| System.Object | An object that has similar properties to this StaticBarItem. |
Overrides
Remarks
Creates a new instance of StaticBarItem and calls the CopyTo(BarItem) method to copy over properties.
CopyTo(BarItem)
Copies the properties of this StaticBarItem into the specified StaticBarItem.
Declaration
public override void CopyTo(BarItem barItem)
Parameters
| Type | Name | Description |
|---|---|---|
| BarItem | barItem | The StaticBarItem where the values should be copied to. |
Overrides
Remarks
The Tags will be copied over only if the actual objects are cloneable (implements IClonable).
GetObjectData(SerializationInfo, StreamingContext)
Declaration
public override void GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Runtime.Serialization.SerializationInfo | info | |
| System.Runtime.Serialization.StreamingContext | context |
Overrides
ResetFlatBorderColor()
Declaration
public void ResetFlatBorderColor()
ShouldSerializeFlatBorderColor()
Declaration
public bool ShouldSerializeFlatBorderColor()
Returns
| Type |
|---|
| System.Boolean |
Explicit Interface Implementations
ICloneable.Clone()
Declaration
object ICloneable.Clone()
Returns
| Type |
|---|
| System.Object |