'Declaration
<System.ComponentModel.DescriptionAttribute("Fired when the NCommand needs measuring (works only if the "OwnMeasure" flag is set to true).")> Public Event Measure As MeasureCommandEventHandler
'Usage
Dim instance As NCommand Dim handler As MeasureCommandEventHandler AddHandler instance.Measure, handler
[System.ComponentModel.Description("Fired when the NCommand needs measuring (works only if the "OwnMeasure" flag is set to true).")] public event MeasureCommandEventHandler Measure
Event Data
The event handler receives an argument of type MeasureCommandEventArgs containing data related to this event. The following MeasureCommandEventArgs properties provide information specific to this event.
Property | Description |
---|---|
Command | Gets the NCommand object associated with the event. (Inherited from Nevron.UI.WinForm.Controls.CommandEventArgs) |
Graphics | Gets the Graphics object to measure against. |
Handled | Gets/sets a value whether the event is handled. (Inherited from Nevron.UI.WinForm.Controls.CommandEventArgs) |
ShortcutSize | Gets/sets the size of the text rect for the command. |
Size | Gets/sets the size of the command. |
TextSize | Gets/sets the size of the text rect for the command. |
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
See Also