Struct
Constraints
ConsoleMonster.Layout
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 109 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.Height
- Method Constraints.Shrink
- Method Constraints.Width
Accepted by parameters 106
- Method BaselineView.Measure
- Method ChangeView.Measure
- Method TextDiffView.Measure
- Method DashboardFrame.Measure
- Method Distribution.Measure
- Method GroupedRows<T>.Measure
- Method ConsoleImage.Measure
- Method ServicesView.Measure
- Method Accordion.Measure
- Method AppBinding.Measure
- Method AppScreens.Measure
- Method Breadcrumb.Measure
- Method Button.Measure
- Method ChartPlot.Measure
- Method ChartView.Measure
- Method Collapsible.Measure
- Method DataGrid.Measure
- Method DatePicker.Measure
- Method InputControl.Measure
- Method LogViewport.Measure
- Method Outline.Measure
- Method Select.Measure
- Method SelectionInputBase.Measure
- Method TextInput.Measure
- Method Toggle.Measure
- Method TreeSelect.Measure
- Method Align.Measure
- Method Columns.Measure
- Method CultureScope.Measure
- Method IWidget.Measure
- Method LayoutGrid.Measure
- Method Padding.Measure
- Method Panel.Measure
- Method Prioritized.Measure
- Method Responsive.Measure
- Method Rows.Measure
- Method Sized.Measure
- Method Stack.Measure
- Method Steady.Measure
- Method LogTailView.Measure
- Method WatchFrame.Measure
- Method OverviewWidget.Measure
- Method TestRunSummary.Measure
- Method TestRunView.Measure
- Method RichText.Measure
- Method ActivityList.Measure
- Method BarChart.Measure
- Method Calendar.Measure
- Method CellMap.Measure
- Method CodeView.Measure
- Method ConsoleViewFrame.Measure
- Method ContextWidget.Measure
- Method Dashboard.Measure
- Method Diagram.Measure
- Method ExceptionView.Measure
- Method FactFlow.Measure
- Method Flow.Measure
- Method FooterBar.Measure
- Method HeaderBar.Measure
- Method HelpView.Measure
- Method Histogram.Measure
- Method InspectorView.Measure
- Method KeyValueList.Measure
- Method Lanes.Measure
- Method LayoutRegion.Measure
- Method LayoutRegions.Measure
- Method Legend.Measure
- Method LineChart.Measure
- Method LiveTable.Measure
- Method LiveWidget.Measure
- Method Logo.Measure
- Method LogRegion.Measure
- Method MarkdownView.Measure
- Method Matrix.Measure
- Method PathSet.Measure
- Method Phases.Measure
- Method ProgressBar.Measure
- Method RecordView.Measure
- Method RegionWidget.Measure
- Method RoleTable.Measure
- Method Rule.Measure
- Method RunBoard.Measure
- Method RunCompletion.Measure
- Method RunDashboard.Measure
- Method RunProgress.Measure
- Method RunSummary.Measure
- Method RunView.Measure
- Method ScatterPlot.Measure
- Method ScoreGauge.Measure
- Method ScrollView.Measure
- Method ShellPrompt.Measure
- Method Sparkline.Measure
- Method Spinner.Measure
- Method Splitter.Measure
- Method StackedBar.Measure
- Method StatusList.Measure
- Method SummaryBar.Measure
- Method Table.Measure
- Method Table<T>.Measure
- Method Tabs.Measure
- Method TextBlock.Measure
- Method Tree.Measure
- Method ViewFacts.Measure
- Method ViewHeader.Measure
- Method ViewHint.Measure
- Method WatchView.Measure
Constructors
public Constraints(int maxWidth, int maxHeight = 2147483647) #Creates constraints.
Parameters
- maxWidth int
- Maximum width in cells.
- maxHeight int = 2147483647
- Maximum height in cells, or Constraints.Unbounded.
Methods
public Constraints Height(int maxHeight) #Returns constraints with a different maximum height.
Parameters
- maxHeight int
- The height.
public Constraints Shrink(int horizontal, int vertical) #Returns constraints reduced by padding or borders.
Parameters
- horizontal int
- Cells to remove from the width.
- vertical int
- Cells to remove from the height (ignored when unbounded).
public override string ToString() #Returns the fully qualified type name of this instance.
Returns
string The fully qualified type name.public Constraints Width(int maxWidth) #Returns constraints with a different maximum width.
Parameters
- maxWidth int
- The width.