FrameworkContentElement.RemoveLogicalChild(Object) 方法

定义

从此元素的逻辑树中删除指定的元素。

protected public:
 void RemoveLogicalChild(System::Object ^ child);
protected internal void RemoveLogicalChild(object child);
member this.RemoveLogicalChild : obj -> unit
Protected Friend Sub RemoveLogicalChild (child As Object)

参数

child
Object

要删除的元素。

注解

添加对子集合的支持时,此 API 主要与类派生方案相关。

大多数 FrameworkContentElement 派生类公开负责包含的专用集合(例如, InlinesSpan 类上; Blocks 在类上 Section )。 从此类派生通常可以避免任何直接操作逻辑树的需要。

适用于

另请参阅