Element > Object

The Element type is the basic type that most elements can be treated as. They come with basic manipulation functions, properties, fields and events.

 

Fields

Classes ObservableArray Array of classes given to the element. In depth
IsMouseOver Boolean Indicates if the mouse is over the element.  
Tag Object Any object to attach to the table.  
Type String Type of element.  

 

 

 

Events

OnClick UserEventArgs   Fired when the user clicks on the element.  
OnContextMenu UserEventArgs Fired when the user right clicks on the element.  
OnDoubleClick UserEventArgs Fired when the user double clicks on the element.  
OnKeyDown KeyEventArgs Fired when the user pressed a key down with the element in focus. In depth
OnKeyPress KeyEventArgs Fired after OnKeyDown and before OnKeyUp. In depth
OnKeyUp KeyEventArgs Fired when a user released a key with the element in focus. In depth
OnMouseDown UserEventArgs Fired when the user presses a mouse button down on the element.  
OnMouseMove UserEventArgs Fired when the mouse cursor moves on the element.  
OnMouseOut UserEventArgs Fired when the mouse cursor moves off the element.  
OnMouseOver UserEventArgs Fired when the mouse cursor moves onto the element.  
OnMouseUp UserEventArgs Fired when a mouse button is released over the element.  
OnMouseWheel MouseWheelEventArgs Fired when the mouse wheel is used over the element. In depth

 

 

 

Property Functions

BackgroundColor(Color color) Gets or sets the background color. In depth
BackgroundColor(String color) Gets or sets the background color. In depth
BackgroundColor(Colors color) Gets or sets the background color. In depth
Bold(Boolean bold) Gets or sets the boldness.  
ClassName(String className) Gets or sets the class name.  
Collapsed(Boolean collapsed) Gets or sets the collapsed state. In depth
Cursor(String cursor) Gets or sets the cursor. In depth
Cursor(Cursors cursor) Gets or sets the cursor. In depth
Enabled(Boolean enabled) Gets or sets the enabled state of the element.  
ForegroundColor(Color color) Gets or sets the font color. In depth
ForegroundColor(String color) Gets or sets the font color. In depth
ForegroundColor(Colors color) Gets or sets the font color. In depth
Height(String height) Gets or sets the styled height. In depth
Height(Number height) Gets or sets the styled height in pixels. In depth
Italic(Boolean italic) Gets or sets the italic state.  
Opacity(Number opacity) Gets or sets the opacity. In depth
Position(String position) Gets or sets the styled position.  
Style(String style, String value) Gets or sets the value of the style. In depth
Style(Style style, String value) Gets or sets the value of the style. In depth
ToolTip(String toolTip) Gets or sets the tooltip.  
Underline(Boolean underline) Gets or sets the underlined state.  
Visible(Boolean visible) Gets or sets the visibility. In depth
Width(String width) Gets or sets the styled width. In depth
Width(Number width) Gets or sets the styled with in pixels. In depth
X(Number x) Gets or sets the x position. In depth
Y(Number y) Gets or sets the y position. In depth

 

Functions

LayoutHeight() Number Gets the total height of the element including border, margin and padding. In depth
LayoutWidth() Number Gets the total width of the element including border, margin and padding. In depth
Toggle(String property, Array data)   Toggles the property between array of values. Defaults to an array of true and false. In depth

 

Last edited Jun 13, 2011 at 2:32 AM by dahrkdaiz, version 18

Comments

No comments yet.