Control Members
The Control type exposes the following members.
Methods
Name | Description | |
---|---|---|
AlignText(String, Alignment, Margin, Int32) |
Aligns the text.
|
|
AlignText(String, Alignment, Margin, Int32, Point%) |
Aligns the text.
|
|
BringToFront |
Makes the control the topmost control in its container
|
|
Click |
Fires the MouseClick event
|
|
Clip |
Clips the specified rect.
|
|
Contains |
Override this in custom controls to handle special cases
|
|
DoDragDrop |
Performs a drag drop operation
|
|
DrawCustom |
Override this to do additional drawing after the control has been drawn
|
|
DrawStyle |
Override this to do additional drawing
Call the base method to draw the control as usual
|
|
DrawText |
Override this to draw text.
|
|
Equals | ||
Focus |
Makes the control the focused control
|
|
GetControl |
Returns the first control matching the given name.
This method searches all siblings.
|
|
GetControlAt(Int32, Int32) |
Returns the first control found below the given screen point
Returns elements and controls
|
|
GetControlAt(Int32, Int32, Boolean) |
Returns the first control found below the given screen point
|
|
GetControls<(Of <<'(T>)>>) |
Returns direct children of the given type
|
|
GetElements |
Returns all child elements
|
|
GetOpacity()()()() |
Gets the opacity.
|
|
GetOpacity(Single) |
Gets the opacity.
|
|
Hit |
Return true if the point collides with the control
|
|
InRect | ||
IsChildOf |
Returns true if the given control is a sibling of the control
|
|
OnAutoSize |
Override this to implement your own AutoSize behavior
|
|
OnKeyDown |
Override this method to handle any keyevents passed to the control
|
|
OnKeyUp |
Override this method to handle any keyevents passed to the control
|
|
OnLateUpdate |
Called late every frame.
Override this in special circumstances to do per-frame operations
|
|
OnStateChanged |
Override this to handle state changes.
This is useful to sync states between controls.
|
|
OnUpdate |
Called every frame.
Override this to do per-frame operations
|
|
PerformLayout |
Performs the layout.
|
|
ProcessEvents |
Processes the events.
|
|
ResetScissor |
Resets the scissor test to whatever is was before the last SetScissor call
|
|
ResizeTo |
Resizes to.
|
|
SetScissor |
Sets the scissor rectangle
|
Properties
Name | Description | |
---|---|---|
AllowDrop |
Gets/Sets whether or not the control processes DragDrop events
|
|
AllowFocus |
Gets/Sets whether or not the control is able to acquire focus
|
|
Anchor |
Gets/Sets the anchoring behavior
|
|
Animation |
Use this to run animations as coroutines
|
|
AutoId |
Gets the unique auto id.
|
|
AutoSize |
Gets/Sets the autosize behavior
|
|
Container |
Returns the parent of the control as IControlContainer
|
|
Cursor |
Name of the cursor to use
|
|
Depth |
Returns the depth of the control
|
|
Desktop |
Returns the root control
|
|
Dock |
Gets/Sets the docking behavior
|
|
Enabled |
Gets/Sets whether or not the control, and all its children, is enabled
|
|
FadeSpeed |
Gets/Sets the local fading speed
|
|
IsElement |
Returns true if the control is a child element
|
|
Location |
Returns the screen position
|
|
Margin |
Defines the space around a control that keeps other controls at a specified distance from the control's borders.
|
|
MaxSize |
Gets/Sets the maximum size.
This is only used during Control.Resize
|
|
MinSize |
Gets/Sets the minimum size.
This is only used during Control.Resize
|
|
Name |
Name of the control
|
|
NoEvents |
Gets/Sets whether or not the control is interactive and processes any events
|
|
Opacity |
Opacity of the control
This is multiplied with any style opacity and hierarchical opacity
|
|
Padding |
Defines the space inside of a control that keeps child controls at a specified distance from the control's borders.
|
|
Parent |
Gets/Sets the parent
|
|
Position |
Gets/Sets the position (relative to parent)
|
|
Scissor |
Gets/Sets whether or not hardware scissor test is used
|
|
Size |
Gets/Sets the size
|
|
State |
Gets/Sets the state
|
|
Style |
Name of the ControlStyle
|
|
TabIndex |
tab index
|
|
Tag |
user defined data object
|
|
Tint |
Gets/Sets the color used to Tint the used Style
|
|
Tooltip |
Tooltip text
|
|
UserData |
user defined data object
|
|
Visible |
Gets/Sets whether or not the control is visible
|
|
ZIndex |
Returns the z-index
|
Events
Name | Description | |
---|---|---|
DragDrop |
Raised when [drag drop].
|
|
GotFocus |
Raised when [got focus].
|
|
KeyDown |
Raised when [key down].
|
|
KeyUp |
Raised when [key up].
|
|
LateUpdate |
Raised when [late update].
|
|
LostFocus |
Raised when [lost focus].
|
|
MouseClick |
Raised when [mouse click].
|
|
MouseDoubleClick |
Raised when [mouse double click].
|
|
MouseDown |
Raised when [mouse down].
|
|
MouseDrag |
Raised when [mouse drag].
|
|
MouseEnter |
Raised when [mouse enter].
|
|
MouseLeave |
Raised when [mouse leave].
|
|
MousePress |
Raised when [mouse press].
|
|
MouseUp |
Raised when [mouse up].
|
|
SizeChanged |
Raised when [size changed].
|
|
Update |
Raised when [update].
|