PrimarySelectionTaskProvider Class
Provides a set of tasks that are available from the selection tool when a class is in the primary selection.
Inheritance Hierarchy
System.Object
Microsoft.Windows.Design.Features.FeatureProvider
Microsoft.Windows.Design.Interaction.TaskProvider
Microsoft.Windows.Design.Interaction.PrimarySelectionTaskProvider
Namespace: Microsoft.Windows.Design.Interaction
Assembly: Microsoft.Windows.Design.Interaction (in Microsoft.Windows.Design.Interaction.dll)
Syntax
'Declaration
<UsesItemPolicyAttribute(GetType(PrimarySelectionPolicy))> _
Public Class PrimarySelectionTaskProvider _
Inherits TaskProvider
[UsesItemPolicyAttribute(typeof(PrimarySelectionPolicy))]
public class PrimarySelectionTaskProvider : TaskProvider
[UsesItemPolicyAttribute(typeof(PrimarySelectionPolicy))]
public ref class PrimarySelectionTaskProvider : public TaskProvider
[<UsesItemPolicyAttribute(typeof(PrimarySelectionPolicy))>]
type PrimarySelectionTaskProvider =
class
inherit TaskProvider
end
public class PrimarySelectionTaskProvider extends TaskProvider
The PrimarySelectionTaskProvider type exposes the following members.
Constructors
Name | Description | |
---|---|---|
PrimarySelectionTaskProvider | Initializes a new instance of the PrimarySelectionTaskProvider class. |
Top
Properties
Name | Description | |
---|---|---|
Context | Gets the editing context that activated this task provider. (Inherited from TaskProvider.) | |
Tasks | Gets a collection of tasks this task provider offers. (Inherited from TaskProvider.) |
Top
Methods
Name | Description | |
---|---|---|
Activate | Called when a task provider's tasks are about to be requested for the first time. (Inherited from TaskProvider.) | |
Deactivate | Called when a task provider is about to be discarded by the designer. (Inherited from TaskProvider.) | |
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.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
IsToolSupported | Returns a value indicating whether this task provider supports the specified tool. (Inherited from TaskProvider.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Top
Remarks
The PrimarySelectionTaskProvider 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.Interaction Namespace