Table of Contents

Method GetSubViews

Namespace
Terminal.Gui.ViewBase
Assembly
Terminal.Gui.dll

GetSubViews(bool, bool, bool)

Gets all SubViews of this Padding, optionally including SubViews of the Padding's Parent.

public override IReadOnlyCollection<View> GetSubViews(bool includeMargin = false, bool includeBorder = false, bool includePadding = false)

Parameters

includeMargin bool

Ignored.

includeBorder bool

Ignored.

includePadding bool

If true, includes SubViews from Padding. If false (default), returns only the direct SubViews of this Padding.

Returns

IReadOnlyCollection<View>

A read-only collection containing all SubViews. If includePadding is true, the collection includes SubViews from this Padding's direct SubViews as well as SubViews from the Padding's Parent.

Remarks

This method returns a snapshot of the SubViews at the time of the call. The collection is safe to iterate even if SubViews are added or removed during iteration.

The order of SubViews in the returned collection is:

  1. Direct SubViews of this Padding
  2. SubViews of Parent (if includePadding is true)