FrameworkContentElement.RemoveLogicalChild(Object) Method

Definition

Removes the specified element from the logical tree for this element.

protected internal void RemoveLogicalChild (object child);

Parameters

child
Object

The element to remove.

Remarks

This API is mainly relevant for class deriving scenarios, when adding support for child collections.

Most FrameworkContentElement derived classes expose dedicated collections that are responsible for containment (for example, Inlines on the Span class; Blocks on the Section class). Deriving from such classes typically can avoid any need to manipulate the logical tree directly.

Applies to

Product Versions
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9

See also