Nevron .NET Vision Documentation
Measure Event


Fired when the NCommand needs measuring (works only if the "OwnMeasure" flag is set to true).
Syntax
'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.

PropertyDescription
GraphicsGets the Graphics object to measure against.  
ShortcutSizeGets/sets the size of the text rect for the command.  
SizeGets/sets the size of the command.  
TextSizeGets/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

Reference

NCommand Class
NCommand Members

Send Feedback