Constructor View
View(Rect)
Initializes a new instance of a AbsoluteView class with the absolute
dimensions specified in the frame
parameter.
public View(Rect frame)
Parameters
frame
RectThe region covered by this view.
Remarks
This constructor initialize a View with a LayoutStyle of Absolute. Use View to initialize a View with LayoutStyle of Computed
View()
public View()
Remarks
Use X, Y, Width, and Height properties to dynamically control the size and location of the view. The View will be created using Computed coordinates. The initial size (Frame) will be adjusted to fit the contents of Text, including newlines ('\n') for multiple lines.
If Height is greater than one, word wrapping is provided.
This constructor initialize a View with a LayoutStyle of Computed. Use X, Y, Width, and Height properties to dynamically control the size and location of the view.
View(int, int, ustring)
public View(int x, int y, ustring text)
Parameters
x
intcolumn to locate the View.
y
introw to locate the View.
text
ustringtext to initialize the Text property with.
Remarks
The View will be created at the given coordinates with the given string. The size (Frame) will be adjusted to fit the contents of Text, including newlines ('\n') for multiple lines.
No line wrapping is provided.
View(Rect, ustring, Border)
public View(Rect rect, ustring text, Border border = null)
Parameters
rect
RectLocation.
text
ustringtext to initialize the Text property with.
border
BorderThe Border.
Remarks
The View will be created at the given coordinates with the given string. The initial size (Frame) will be adjusted to fit the contents of Text, including newlines ('\n') for multiple lines.
If rect.Height
is greater than one, word wrapping is provided.
View(ustring, TextDirection, Border)
public View(ustring text, TextDirection direction = TextDirection.LeftRight_TopBottom, Border border = null)
Parameters
text
ustringtext to initialize the Text property with.
direction
TextDirectionThe text direction.
border
BorderThe Border.