ActionComponents  04.05.00
Customizable UI and time-saving tools for Android development with Xamarin and Visual Studio.
ActionComponents.ACLabel Class Reference

The ActionComponents.ACLabel has helper methods and events such as Touched and Released that turn it into an interactive element. More...

Inheritance diagram for ActionComponents.ACLabel:
Collaboration diagram for ActionComponents.ACLabel:

Public Member Functions

 ACLabel (Context context)
 Initializes a new instance of the ActionComponents.ACLabel class. More...
 
 ACLabel (Context context, IAttributeSet attr)
 Initializes a new instance of the ActionComponents.ACLabel class. More...
 
 ACLabel (IntPtr javaReference, JniHandleOwnership transfer)
 Initializes a new instance of the ActionComponents.ACLabel class. More...
 
 ACLabel (Context context, IAttributeSet attr, int defStyle)
 Initializes a new instance of the ActionComponents.ACLabel class. More...
 
void MoveToPoint (int x, int y)
 Moves this ActionComponents.ACLabel to the given point More...
 
void MoveToPoint (Point point)
 Moves this ActionComponents.ACLabel to the given point More...
 
void Resize (int width, int height)
 Resize this ActionComponents.ACLabel to the specified width and height. More...
 
bool PointInside (int x, int y)
 Test to see if the given x and y coordinates are inside this ActionComponents.ACLabel More...
 
bool PointInside (Point pt)
 Test to see if the given point is inside this ActionComponents.ACLabel More...
 
override bool OnTouchEvent (MotionEvent e)
 Raises the touch event event. More...
 
delegate void ACLabelTouchedDelegate (ACLabel view)
 Occurs when this ActionComponents.ACLabel is touched More...
 
delegate void ACLabelMovedDelegate (ACLabel view)
 Occurs when this ActionComponents.ACLabel is moved More...
 
delegate void ACLabelReleasedDelegate (ACLabel view)
 Occurs when this ActionComponents.ACLabel is released More...
 

Properties

bool bringToFrontOnTouched [get, set]
 Gets or sets a value indicating whether this ActionComponents.ACLabel is automatically brought to the front when touched. More...
 
int LeftMargin [get, set]
 Gets or sets the left margin. More...
 
int TopMargin [get, set]
 Gets or sets the top margin. More...
 
int RightMargin [get, set]
 Gets or sets the right margin. More...
 
int BottomMargin [get, set]
 Gets or sets the bottom margin. More...
 
int LayoutWidth [get, set]
 Gets or sets the width of the layout. More...
 
int LayoutHeight [get, set]
 Gets or sets the height of the layout. More...
 

Events

ACLabelTouchedDelegate Touched
 
ACLabelMovedDelegate Moved
 
ACLabelReleasedDelegate Released
 

Detailed Description

The ActionComponents.ACLabel has helper methods and events such as Touched and Released that turn it into an interactive element.

Available in ActionPack Business or Enterprise only.

Constructor & Destructor Documentation

ActionComponents.ACLabel.ACLabel ( Context  context)

Initializes a new instance of the ActionComponents.ACLabel class.

Parameters
contextContext.
ActionComponents.ACLabel.ACLabel ( Context  context,
IAttributeSet  attr 
)

Initializes a new instance of the ActionComponents.ACLabel class.

Parameters
contextContext.
attrAttr.
ActionComponents.ACLabel.ACLabel ( IntPtr  javaReference,
JniHandleOwnership  transfer 
)

Initializes a new instance of the ActionComponents.ACLabel class.

Parameters
javaReferenceJava reference.
transferTransfer.
ActionComponents.ACLabel.ACLabel ( Context  context,
IAttributeSet  attr,
int  defStyle 
)

Initializes a new instance of the ActionComponents.ACLabel class.

Parameters
contextContext.
attrAttr.
defStyleDef style.

Member Function Documentation

delegate void ActionComponents.ACLabel.ACLabelMovedDelegate ( ACLabel  view)

Occurs when this ActionComponents.ACLabel is moved

delegate void ActionComponents.ACLabel.ACLabelReleasedDelegate ( ACLabel  view)

Occurs when this ActionComponents.ACLabel is released

delegate void ActionComponents.ACLabel.ACLabelTouchedDelegate ( ACLabel  view)

Occurs when this ActionComponents.ACLabel is touched

Here is the caller graph for this function:

void ActionComponents.ACLabel.MoveToPoint ( int  x,
int  y 
)

Moves this ActionComponents.ACLabel to the given point

Parameters
xThe x coordinate.
yThe y coordinate.
void ActionComponents.ACLabel.MoveToPoint ( Point  point)

Moves this ActionComponents.ACLabel to the given point

Parameters
ptPoint.
override bool ActionComponents.ACLabel.OnTouchEvent ( MotionEvent  e)

Raises the touch event event.

Parameters
eE.

Here is the call graph for this function:

bool ActionComponents.ACLabel.PointInside ( int  x,
int  y 
)

Test to see if the given x and y coordinates are inside this ActionComponents.ACLabel

Returns
true, if inside was pointed, false otherwise.
Parameters
xThe x coordinate.
yThe y coordinate.

Here is the caller graph for this function:

bool ActionComponents.ACLabel.PointInside ( Point  pt)

Test to see if the given point is inside this ActionComponents.ACLabel

Returns
true, if inside was pointed, false otherwise.
Parameters
ptPoint.

Here is the call graph for this function:

void ActionComponents.ACLabel.Resize ( int  width,
int  height 
)

Resize this ActionComponents.ACLabel to the specified width and height.

Parameters
widthWidth.
heightHeight.

Property Documentation

int ActionComponents.ACLabel.BottomMargin
getset

Gets or sets the bottom margin.

The bottom margin.

bool ActionComponents.ACLabel.bringToFrontOnTouched
getset

Gets or sets a value indicating whether this ActionComponents.ACLabel is automatically brought to the front when touched.

true if bring to front on touched; otherwise, false.

int ActionComponents.ACLabel.LayoutHeight
getset

Gets or sets the height of the layout.

The height of the layout.

int ActionComponents.ACLabel.LayoutWidth
getset

Gets or sets the width of the layout.

The width of the layout.

int ActionComponents.ACLabel.LeftMargin
getset

Gets or sets the left margin.

The left margin.

int ActionComponents.ACLabel.RightMargin
getset

Gets or sets the right margin.

The right margin.

int ActionComponents.ACLabel.TopMargin
getset

Gets or sets the top margin.

The top margin.

Event Documentation

ACLabelMovedDelegate ActionComponents.ACLabel.Moved
ACLabelReleasedDelegate ActionComponents.ACLabel.Released
ACLabelTouchedDelegate ActionComponents.ACLabel.Touched