Constructor View
View(Rect)
Initializes a new instance of a Absolute View class with the absolute
dimensions specified in the frame parameter.
public View(Rect frame)
Parameters
frameRectThe 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
xintcolumn to locate the View.
yintrow to locate the View.
textustringtext 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
rectRectLocation.
textustringtext to initialize the Text property with.
borderBorderThe 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
textustringtext to initialize the Text property with.
directionTextDirectionThe text direction.
borderBorderThe Border.