ContextItem Members

Represents a base class for context items: buttons, track bars, etc.

Constructors

Name Description
ContextItem() Initializes a new instance of the ContextItem class.

Properties

Name Description
Alignment Gets or sets the current item's alignment relative to the owner control. This property is obsolete, use ContextItem.AlignmentOptions instead.
AlignmentOptions Provides access to options that specify the panel in which the item is displayed, and its position in the panel.
AllowGlyphSkinning Gets or sets whether the current item's glyph is painted using the foreground color.
AnchorAlignment Gets or sets the alignment of the current item relative to the anchor element.
AnchorElement Gets or sets an item (anchor element) relative to which the current item is aligned.
AnchorElementId Gets or sets the globally unique identifier of the item (anchor element), relative to which the current item is aligned.
AnchorIndent Gets or sets the indent between the current item and the anchor element.
AnchorOffset Gets or sets the translation of the current item from the anchor element.
AnimationType Gets or sets the type of the animation used to show and hide the current item.
AppearanceHover Provides access to the settings used to paint the current item in the hovered state.
AppearanceNormal Provides access to the appearance settings used to paint the current item in the normal (not hovered) state.
Collection Gets the collection to which the current item belongs.
Enabled Gets or sets whether the current item can respond to end-user interaction.
Glyph Gets or sets the glyph displayed by the current item in the normal (not hovered) state.
HasGlyph Gets whether or not this ContextItem has a glyph assigned.
HasHoverGlyph Gets whether or not this ContextItem has a hovered state glyph assigned.
HoverGlyph Gets or sets the glyph displayed by the current item in the hovered state.
Id Gets or sets the current item's unique identifier.
ImageOptions Provides access to all properties that allow you to assign and customize a glyph for this ContextItem.
ImageOptionsCollection Provides access to image-related settings for each ContextItem visual state.
Name Gets or sets the current item's name.
OriginItem This member supports the internal infrastructure, and is not intended to be used directly from your code.
ShowToolTips Gets or sets whether hints can be displayed for the current item.
Size Gets or sets the current item's size.
SuperTip Gets or sets a SuperToolTip for the current context item.
Tag Gets or sets custom data associated with the current item.
ToolTip Gets or sets the text of the hint for the current item.
ToolTipIconType Gets or sets the type of icon displayed in the hint for the current item.
ToolTipTitle Gets or sets the title of the hint for the current item.
Visibility Gets or sets the item visibility.

Methods

Name Description
AssignPropertiesInternal(ContextItem) This member supports the internal infrastructure, and is not intended to be used directly from your code.
AssignPropertiesInternal(ContextItem, Boolean) This member supports the internal infrastructure, and is not intended to be used directly from your code.
BeginUpdate() Locks the ContextItem object by preventing visual updates until the EndUpdate method is called.
CancelUpdate() Unlocks the ContextItem object after it has been locked by the BeginUpdate method, without causing an immediate visual update.
Clone() Creates a new ContextItem object that is a copy of the current instance.
EndUpdate() Unlocks the ContextItem object after a call to the BeginUpdate method and causes an immediate visual update.
Equals(Object) Determines whether the specified object is equal to the current object. Inherited from Object.
Equals(Object, Object) static Determines whether the specified object instances are considered equal. Inherited from Object.
GetActualGlyph(ISkinProvider) Returns the Image object specifying the glyph actually assigned.
GetActualHoverGlyph(ISkinProvider) Returns the Image object specifying the hovered state glyph actually assigned.
GetHashCode() Serves as the default hash function. Inherited from Object.
GetType() Gets the Type of the current instance. Inherited from Object.
MemberwiseClone() protected Creates a shallow copy of the current Object. Inherited from Object.
RaiseContextItemClick(MouseEventArgs, ContextItemViewInfo) Raises the ContextItem.Click event.
ReferenceEquals(Object, Object) static Determines whether the specified Object instances are the same instance. Inherited from Object.
ResetSuperTip() Removes the SuperToolTip object assigned to the current context item.
ToString() Returns a string that represents the current object. Inherited from Object.

Events

Name Description
Click Fires when the current item is clicked.
CustomToolTip Allows the hint for the current item to be customized. This event is only raised for RatingContextButton objects.
See Also