Class LayoutProblem
- Namespace
- Forma
- Assembly
- Forma.dll
One clipped or overflowing control.
public sealed class LayoutProblem
- Inheritance
-
LayoutProblem
- Inherited Members
Constructors
LayoutProblem(LayoutProblemKind, Control, Vector2, string)
Creates a finding.
public LayoutProblem(LayoutProblemKind kind, Control control, Vector2 overflow, string message)
Parameters
kindLayoutProblemKindcontrolControloverflowVector2messagestring
Properties
Classes
The control's style classes, space separated.
public string Classes { get; }
Property Value
Control
The control that has the problem.
public Control Control { get; }
Property Value
Kind
What kind of problem this is.
public LayoutProblemKind Kind { get; }
Property Value
Message
A sentence describing the problem, naming the control.
public string Message { get; }
Property Value
Name
The control's name (x:Name or id), or an empty string.
public string Name { get; }
Property Value
Origin
Where the control was authored (file:line) when the view carries it in the origin data attribute; otherwise empty.
public string Origin { get; }
Property Value
Overflow
How far the control extends past its box, per axis, in layout pixels.
public Vector2 Overflow { get; }
Property Value
- Vector2
Methods
ToString()
The message.
public override string ToString()