Method | Description | |
---|---|---|
AddContextMenu ( this clb ) : void |
Adds a useful context menu to a checked list box
|
|
AsyncWaitOnGUIThread ( this |
OnComplete will be invoked on the GUI thread when condition is true. This function need not be called from the GUI thread.
|
|
Center ( this rectangle ) : Point |
The point at the center of the rectangle.
|
|
CenteredAround ( this size, Point location ) : Point |
Returns the point where this is centered around the location.
|
|
ConstrainedTo ( this size, |
If size fits inside the containing size, the original size is returned. Otherwise, a size is returned that is as large as possible, fits within the container, and has the same aspect ratio as the original size.
|
|
DrawArrow ( this graphics, |
Draws an arrow in the specified rectangle with the specified direction. Ratio is used on recursive calls withing this function to adjust the sizing of bidirectional arrows
|
|
DrawFixationCross ( this graphics, Point center ) : void |
Draws a fixation cross centered at location
|
|
EnableValidation ( this textBox, bool>.Func |
Adds fancy validation logic using isValid to determine the validity of the textbox's content. The onValidTextEntered function, if not null, is called from the TextChanged event only if the new text was valid.
|
|
GUIInvoke ( this action ) : void |
Invokes the action on the GUI thread if necessary.
|
|
IsValid ( this textBox ) : bool |
Returns true iff there is no validation function installed for the text box or if the current text value is declared valid by the installed validation function
|
|
ReverseTabOrder ( this control ) : void |
Reverses the tab order of the control's children.
|
|
ToLabel ( this text, DockStyle dockStyle = DockStyle.Top, ContentAlignment align = ContentAlignment.TopLeft, bool autoSize = true ) : |
Creates a label from text. The default DockStyle is set for usage in a top-down FlowLayoutPanel.
|
|
TryLoadImage ( this path, Image &image ) : bool |
If Image.FromFile succeeds and the result is not null, returns true and assigns the loaded value to image. Otherwise, image is set to null and false is returned.
|
Method | Description | |
---|---|---|
AsyncWaitOnGUIThreadHelper ( this |
public static AddContextMenu ( this clb ) : void | ||
clb | this | |
return | void |
public static AsyncWaitOnGUIThread ( this |
||
condition | this |
|
onComplete | System.Action | |
return | void |
public static Center ( this rectangle ) : Point | ||
rectangle | this | |
return | Point |
public static CenteredAround ( this size, Point location ) : Point | ||
size | this | |
location | Point | |
return | Point |
public static ConstrainedTo ( this size, |
||
size | this | |
container | ||
return |
public static DrawArrow ( this graphics, |
||
graphics | this | |
area | ||
arrowType | ArrowType | |
ratio | double | |
return | void |
public static DrawFixationCross ( this graphics, Point center ) : void | ||
graphics | this | |
center | Point | |
return | void |
public static EnableValidation ( this textBox, bool>.Func |
||
textBox | this | |
isValid | bool>.Func | |
onValidTextEntered | System.Action | |
return | void |
public static GUIInvoke ( this action ) : void | ||
action | this | |
return | void |
public static IsValid ( this textBox ) : bool | ||
textBox | this | |
return | bool |
public static ReverseTabOrder ( this control ) : void | ||
control | this | |
return | void |
public static ToLabel ( this text, DockStyle dockStyle = DockStyle.Top, ContentAlignment align = ContentAlignment.TopLeft, bool autoSize = true ) : |
||
text | this | |
dockStyle | DockStyle | |
align | ContentAlignment | |
autoSize | bool | |
return |
public static TryLoadImage ( this path, Image &image ) : bool | ||
path | this | |
image | Image | |
return | bool |