ListView.Activation Property
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the type of action the user must take to activate an item.
public:
property System::Windows::Forms::ItemActivation Activation { System::Windows::Forms::ItemActivation get(); void set(System::Windows::Forms::ItemActivation value); };
public System.Windows.Forms.ItemActivation Activation { get; set; }
member this.Activation : System.Windows.Forms.ItemActivation with get, set
Public Property Activation As ItemActivation
One of the ItemActivation values. The default is Standard.
The value specified is not one of the ItemActivation members.
The Activation property allows you to specify how the user will activate an item in the ListView control. Activating an item in a ListView differs from just selecting an item. When an item is activated, an action is typically performed in an event handler for the ItemActivate event. For example, when an item is activated you might open a file or display a dialog box that allows the item to be edited. Typically, an item is double-clicked by the user to activate it. If the Activation property is set to OneClick, clicking the item one time activates it. Setting the Activation property to TwoClick differs from the standard double-click because the two clicks can have any duration between them.
Примітка
If the Activation property is set to OneClick or TwoClick, label editing will not be allowed regardless of the value of the LabelEdit property.
Продукт | Версії |
---|---|
.NET Framework | 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Windows Desktop | 3.0, 3.1, 5, 6, 7, 8, 9 |
Відгук про .NET
.NET – це проект із відкритим кодом. Виберіть посилання, щоб надати відгук: