The Tool type exposes the following members.

Constructors

  NameDescription
Tool
Initializes a new instance of Tool class.

Methods

  NameDescription
Dispose
Clean up any resources being used.
Equals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Finalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
GetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
GetType
Gets the Type of the current instance.
(Inherited from Object.)
MemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
OnPropertyChanged
Fires the PropertyChanged event.
ResetImageMargins
Resets ImageMargins property.
ResetTextMargins
Resets TextMargins property.
ShouldSerializeEnabled
Indicates whether the Enabled property should be serialized by Visual Studio designer.
ShouldSerializeFont
Indicates whether the Font property should be serialized by Visual Studio designer.
ShouldSerializeFontSelected
Indicates whether the FontSelected property should be serialized by Visual Studio designer.
ShouldSerializeForeColor
Indicates whether the ForeColor property should be serialized by Visual Studio designer.
ShouldSerializeForeColorSelected
Indicates whether the ForeColorSelected property should be serialized by Visual Studio designer.
ShouldSerializeImageAlignment
Indicates whether the ImageAlignment property should be serialized by Visual Studio designer.
ShouldSerializeStretchImage
Indicates whether the StretchImage property should be serialized by Visual Studio designer.
ShouldSerializeTag
Indicates whether the Tag property should be serialized by Visual Studio designer.
ShouldSerializeTextAlignment
Indicates whether the TextAlignment property should be serialized by Visual Studio designer.
ToString
Returns a System.String that represents the current System.Object.
(Overrides Object..::.ToString()()().)

Properties

  NameDescription
Enabled
Gets or sets a value indicating whether the Tool is enabled.
Font
Gets or sets the Font which should be used to draw the Text
FontSelected
Gets or sets the Font which should be used to draw the Text when tool is selected
ForeColor
Gets or sets the Color used to draw the Text.
ForeColorSelected
Gets or sets the Color used to draw the Text when tool is selected.
ImageAlignment
Specifies the Alignment of an image in the Tool.
ImageIndex
Gets or sets index to Images of an image which will be displayed over this Tool (button).
ImageMargins
Gets or sets the Marginsfor an image.
ImageSelectedIndex
Gets or sets the index of image which will be painted over this Tool.
StretchImage
Gets or sets a value indicating whether the image assigned to this Tool should be stretched to fully accommodate the rectangle designated for it.
Tag
User defined data.
Text
Gets or sets the text label associated with this Tool.
TextAlignment
Gets or sets how the Text should be aligned within its rectangle.
TextMargins
Gets or sets the size of text margins.

Events

  NameDescription
PropertyChanged
Raised whenever a value of a property changes.

See Also