DamageScope Enumeration
This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.
Indicates the scope of damage reported to a document manager.
Namespace: Microsoft.Windows.Design.Documents.Trees
Assembly: Microsoft.Windows.Design.Markup (in Microsoft.Windows.Design.Markup.dll)
Syntax
'Declaration
Public Enumeration DamageScope
'Usage
Dim instance As DamageScope
public enum DamageScope
public enum class DamageScope
public enum DamageScope
Members
Member name | Description | |
---|---|---|
ThisOnly | Indicates damage of this item/property only. For an item, all the properties of the item are considered modified. For a property, it marks just the property as modified. | |
ThisAndImmediateChildren | Indicates damage of this item/property and all its immediate children. For an item, it marks all the properties as modified and the properties of the immediate children. For a composite property, all the properties of the property contents are modified. For a non-composite property, it is just like ThisOnly and only that property is modified. | |
ThisAndAllChildren | Indicates damage of this item/property and all its children. For an item, all properties of it and all properties of the children are considered modified. For a composite property, all items, properties, and their children are considered modified. If the document root item is passed in, the entire tree is considered modified and the entire document is checked for modification. | |
ThisAndSiblings | Indicates damage of this item/property and all its siblings. For an item, the item, all items in the same composite, and their properties are considered modified. For an item, ThisAndSiblings is equivalent to ThisAndImmediateChildren on the containing property. For a property, all properties of the same item are considered modified. For a property, ThisAndSiblings is equivalent to ThisOnly on the containing item. | |
Collection | Indicates damage of a collection. The associated identity is a CollectionDamageIdentity object, which contains the identity of the property damaged and the identities of the items before and after the damage.
This scope must not be used to record a move of an item from one collection to another or a move inside the same collection. It must be at least ThisAndImmediateChildren or larger scope on both collections to make sure that the entire content of both collections are seen as damaged. |
See Also
Reference
Microsoft.Windows.Design.Documents.Trees Namespace