SelectionParentPolicy Class
A policy that specifies the set of unique parents for the current set of selected items.
Inheritance Hierarchy
System.Object
Microsoft.Windows.Design.Policies.ItemPolicy
Microsoft.Windows.Design.Policies.SelectionPolicy
Microsoft.Windows.Design.Policies.SelectionParentPolicy
Namespace: Microsoft.Windows.Design.Policies
Assembly: Microsoft.Windows.Design.Interaction (in Microsoft.Windows.Design.Interaction.dll)
Syntax
'Declaration
Public Class SelectionParentPolicy _
Inherits SelectionPolicy
public class SelectionParentPolicy : SelectionPolicy
public ref class SelectionParentPolicy : public SelectionPolicy
type SelectionParentPolicy =
class
inherit SelectionPolicy
end
public class SelectionParentPolicy extends SelectionPolicy
The SelectionParentPolicy type exposes the following members.
Constructors
Name | Description | |
---|---|---|
SelectionParentPolicy | Initializes a new instance of the SelectionParentPolicy class. |
Top
Properties
Name | Description | |
---|---|---|
Context | Gets the editing context for the designer. (Inherited from ItemPolicy.) | |
IsSurrogate | Gets a value indicating whether the policy is a surrogate policy. (Inherited from ItemPolicy.) | |
PolicyItems | Gets an enumeration of items that are affected by this policy. (Inherited from SelectionPolicy.) |
Top
Methods
Name | Description | |
---|---|---|
Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetPolicyItems | Overrides the default GetPolicyItems method to return the unique parents of the specified selection. (Overrides SelectionPolicy.GetPolicyItems(Selection).) | |
GetSurrogateItems | Returns an optional set of surrogate items for this item. (Inherited from ItemPolicy.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
IsInPolicy(Selection, ModelItem) | Gets a value indicating whether the specified item is to be included in the policy. (Inherited from SelectionPolicy.) | |
IsInPolicy(Selection, ModelItem, ModelItem) | Evaluates whether the specified parent item is to be included in the policy. | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
OnActivated | Called when this policy is activated. (Inherited from SelectionPolicy.) | |
OnDeactivated | Called when this policy is deactivated. (Inherited from SelectionPolicy.) | |
OnPolicyItemsChanged | Raises the PolicyItemsChanged event. (Inherited from ItemPolicy.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Top
Events
Name | Description | |
---|---|---|
PolicyItemsChanged | Occurs when the policy changes. (Inherited from ItemPolicy.) |
Top
Remarks
The SelectionParentPolicy class specifies the immediate parents of the selected items. The set consists of unique parent items. Therefore, no parents appear more than one time.
The PrimarySelectionPolicy is an ItemPolicy that is enabled for the primarily selected element when SelectionTool is the active tool.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
See Also
Reference
Microsoft.Windows.Design.Policies Namespace