Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

FrameworkContentElement.RemoveLogicalChild Method

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

Namespace:  System.Windows
Assembly:  PresentationFramework (in PresentationFramework.dll)

protected internal void RemoveLogicalChild(
	Object child
)

Parameters

child
Type: System.Object

The element to remove.

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.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft