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

kind LayoutProblemKind
control Control
overflow Vector2
message string

Properties

Classes

The control's style classes, space separated.

public string Classes { get; }

Property Value

string

Control

The control that has the problem.

public Control Control { get; }

Property Value

Control

Kind

What kind of problem this is.

public LayoutProblemKind Kind { get; }

Property Value

LayoutProblemKind

Message

A sentence describing the problem, naming the control.

public string Message { get; }

Property Value

string

Name

The control's name (x:Name or id), or an empty string.

public string Name { get; }

Property Value

string

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

string

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()

Returns

string