Method GetSubViews
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
includeMarginboolIgnored.
includeBorderboolIgnored.
includePaddingboolIf 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
includePaddingis 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:
- Direct SubViews of this Padding
- SubViews of Parent (if
includePaddingis true)