API Reference
Struct
Constraints
The space offered to a widget during measurement. Print-once output offers an unbounded height; live output offers the screen.
Inheritance
- ValueType
- Constraints
Usage
Explore 53 API references to this type
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by 3
- Method Constraints.Shrink
- Method Constraints.WithHeight
- Method Constraints.WithWidth
Accepted by parameters 50
- Method ChangeView.Measure
- Method Align.Measure
- Method Columns.Measure
- Method CultureScope.Measure
- Method Grid.Measure
- Method IWidget.Measure
- Method Padding.Measure
- Method Panel.Measure
- Method Prioritized.Measure
- Method Rows.Measure
- Method Sized.Measure
- Method Stack.Measure
- Method WatchFrame.Measure
- Method TestRunSummary.Measure
- Method TestRunView.Measure
- Method RichText.Measure
- Method ActivityList.Measure
- Method BarChart.Measure
- Method CellMap.Measure
- Method CodeView.Measure
- Method Dashboard.Measure
- Method ExceptionView.Measure
- Method FooterBar.Measure
- Method HeaderBar.Measure
- Method HelpView.Measure
- Method Histogram.Measure
- Method InspectorView.Measure
- Method KeyValueList.Measure
- Method Lanes.Measure
- Method LineChart.Measure
- Method LiveTable.Measure
- Method LiveWidget.Measure
- Method Logo.Measure
- Method LogRegion.Measure
- Method Phases.Measure
- Method ProgressBar.Measure
- Method RecordView.Measure
- Method Rule.Measure
- Method RunView.Measure
- Method Slot.Measure
- Method Sparkline.Measure
- Method Spinner.Measure
- Method StackedBar.Measure
- Method StatusList.Measure
- Method SummaryBar.Measure
- Method Table.Measure
- Method Table.Measure
- Method TextBlock.Measure
- Method Tree.Measure
- Method WatchView.Measure
Constructors
public Constraints(Int32 maxWidth, Int32 maxHeight = 2147483647) #Creates constraints.
Parameters
- maxWidth System.Int32
- Maximum width in cells.
- maxHeight System.Int32 = 2147483647
- Maximum height in cells, or Constraints.Unbounded.
Methods
public Constraints Shrink(Int32 horizontal, Int32 vertical) #Returns:
ConstraintsReturns constraints reduced by padding or borders.
Parameters
- horizontal System.Int32
- Cells to remove from the width.
- vertical System.Int32
- Cells to remove from the height (ignored when unbounded).
Returns
The reduced constraints.
public override String ToString() #Returns:
StringReturns the fully qualified type name of this instance.
Returns
The fully qualified type name.
public Constraints WithHeight(Int32 maxHeight) #Returns:
ConstraintsReturns constraints with a different maximum height.
Parameters
- maxHeight System.Int32
- The height.
Returns
New constraints.
public Constraints WithWidth(Int32 maxWidth) #Returns:
ConstraintsReturns constraints with a different maximum width.
Parameters
- maxWidth System.Int32
- The width.
Returns
New constraints.
Inherited Methods
Properties
public Int32 MaxHeight { get; } #Maximum height in cells, or Constraints.Unbounded.