Property Frame
Frame
Gets or sets the absolute location and dimension of the view.
public Rectangle Frame { get; set; }
Property Value
- Rectangle
The rectangle describing absolute location and dimension of the view, in coordinates relative to the SuperView's Content, which is bound by ContentSize.
Remarks
Frame is relative to the SuperView's Content, which is bound by ContentSize.
Setting Frame will set X, Y, Width, and Height to the
values of the corresponding properties of the value
parameter.
This causes LayoutStyle to be Absolute.
Altering the Frame will eventually (when the view hierarchy is next laid out via see cref="LayoutSubviews"/>) cause LayoutSubview(View, Size) and OnDrawContent(Rectangle) methods to be called.