Table of Contents

Class Constraint

Namespace
Nalu.Cassowary
Assembly
Nalu.Maui.Layouts.dll

A constraint, consisting of an equation governed by an expression and a relational operator, and an associated strength.

public class Constraint
Inheritance
Constraint
Inherited Members

Constructors

Constraint(Expression, RelationalOperator, double)

Initializes a new instance of the Constraint struct.

public Constraint(Expression expression, RelationalOperator @operator, double strength)

Parameters

expression Expression

The Expression.

operator RelationalOperator

The RelationalOperator.

strength double

The strength.

Constraint(Expression, WeightedRelation)

Initializes a new instance of the Constraint struct.

public Constraint(Expression expression, WeightedRelation relation)

Parameters

expression Expression

The Expression.

relation WeightedRelation

The WeightedRelation.

Properties

Expression

public Expression Expression { get; }

Property Value

Expression

Operator

public RelationalOperator Operator { get; }

Property Value

RelationalOperator

Strength

The strength.

public double Strength { get; }

Property Value

double

Methods

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.