ToolStripSplitButton.ToolStripSplitButtonAccessibleObject.DoDefaultAction Method ()

 

Performs the default action associated with this ToolStripSplitButton.ToolStripSplitButtonAccessibleObject.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

[SecurityPermissionAttribute(SecurityAction.Demand, Flags = SecurityPermissionFlag.UnmanagedCode)]
public override void DoDefaultAction()

Clients can retrieve the object's default action by inspecting an object's DefaultAction property. A client can use automation (if supported) instead of DoDefaultAction to perform an object's default action. However, DoDefaultAction provides an easy way to perform an object's most commonly used action.

SecurityPermission

for inheriting classes to call unmanaged code. Associated enumeration: SecurityPermissionFlag.UnmanagedCode.

.NET Framework
Available since 2.0
Return to top
Show: