API Reference
InspectorView
Shows an arbitrary object (POCO, dictionary, PSObject through a member source, JSON on .NET 8) as a record view: scalar members as labelled values through the automatic presenter, nested objects as indented sections, uniform collections as nested tables (columns inferred from the elements), other collections as lists, with +N more, cycle and depth-limit notes. The object is inspected once, when the view is created.
Inheritance
- Object
- InspectorView
Usage
Explore 8 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 4
- Extension method InspectorView.WithPresentation
- Extension method InspectorView.WithShowHeader
- Method InspectorViewFluent.WithPresentation
- Method InspectorViewFluent.WithShowHeader
Accepted by parameters 4
- Extension method InspectorView.WithPresentation
- Extension method InspectorView.WithShowHeader
- Method InspectorViewFluent.WithPresentation
- Method InspectorViewFluent.WithShowHeader
Constructors
public InspectorView(Object? value, InspectorOptions? options = null, String? title = null) #Inspects a value and creates the view.
Parameters
- value System.Object?
- The value.
- options ConsoleMonster.Data.InspectorOptions? = null
- Depth, item and column limits, filters and member sources, or null for defaults.
- title System.String? = null
- The title, or null for the value's type name.
public InspectorView(InspectNode root, String? title = null) #Creates the view from an inspection tree.
Parameters
- root ConsoleMonster.Data.InspectNode
- The inspection root.
- title System.String? = null
- The title, or null for the root's type name.
Methods
public Size Measure(Constraints constraints, RenderContext context) #SizeReturns the size the widget wants within the constraints.
Parameters
- constraints ConsoleMonster.Layout.Constraints
- The space offered.
- context ConsoleMonster.Canvas.RenderContext
- Profile, theme and glyphs.
Returns
The desired size, never larger than the constraints.
public Void Render(Region region, RenderContext context) #VoidRenders into a region. The region may be smaller or larger than the measured size.
Parameters
- region ConsoleMonster.Canvas.Region
- The target region.
- context ConsoleMonster.Canvas.RenderContext
- Profile, theme and glyphs.
Inherited Methods
public virtual Boolean Equals(Object? obj) #BooleanParameters
- obj Object?
Properties
Extension Methods
public static InspectorView WithPresentation(InspectorView inspectorView, PresentationOptions value) #InspectorViewSets InspectorView.Presentation: Culture, clock and time zone for values.
Parameters
- inspectorView ConsoleMonster.Widgets.InspectorView
- The instance.
- value ConsoleMonster.Presenters.PresentationOptions
- The value.
Returns
The same instance.
public static InspectorView WithPresentation(InspectorView inspectorView, Action<PresentationOptions> configure) #InspectorViewConfigures InspectorView.Presentation in place (creating it when not set): Culture, clock and time zone for values.
Parameters
- inspectorView ConsoleMonster.Widgets.InspectorView
- The instance.
- configure System.Action<ConsoleMonster.Presenters.PresentationOptions>
- Configures the value.
Returns
The same instance.
public static InspectorView WithShowHeader(InspectorView inspectorView, Boolean value = true) #InspectorViewSets InspectorView.ShowHeader: Whether the title and summary line is shown (default true; nested inspectors turn it off).
Parameters
- inspectorView ConsoleMonster.Widgets.InspectorView
- The instance.
- value System.Boolean = true
- The value (default true).
Returns
The same instance.