VisualTreeChangeEventArgs 类

定义

VisualTreeChanged 事件提供数据。Provides data for the VisualTreeChanged event.

public ref class VisualTreeChangeEventArgs : EventArgs
public class VisualTreeChangeEventArgs : EventArgs
type VisualTreeChangeEventArgs = class
    inherit EventArgs
Public Class VisualTreeChangeEventArgs
Inherits EventArgs
继承
VisualTreeChangeEventArgs

注解

此类型支持 .NET Framework 基础结构,不能在代码中直接使用。This type supports the .NET Framework infrastructure and is not intended to be used directly from your code.

构造函数

VisualTreeChangeEventArgs(DependencyObject, DependencyObject, Int32, VisualTreeChangeType)

初始化 VisualTreeChangeEventArgs 类的新实例。Initializes a new instance of the VisualTreeChangeEventArgs class.

属性

ChangeType

获取一个值,该值指示是否已将子元素添加到另一个元素(父级)或是否已将其删除。Gets a value that indicates whether the Child element was added to another element (Parent) or removed.

Child

获取 DependencyObject,它已添加到另一个元素(父级)或已从中删除。Gets the DependencyObject that was added to or removed from another element (Parent).

ChildIndex

获取添加或删除操作完成时子元素所在的父元素子级中的索引。Gets the index in the Parent element's children where the Child element is located when the add or remove operation is complete. 删除时,此值将始终为 -1。On a removal, this value will always be -1.

Parent

获取已向其添加或从中删除元素(子级)的 DependencyObjectGets the DependencyObject to which an element (Child) was either added or removed.

方法

Equals(Object)

确定指定的对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
GetHashCode()

用作默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
ToString()

返回一个表示当前对象的 string。Returns a string that represents the current object.

(继承自 Object)

适用于