Here are the examples of the csharp api class System.Windows.Forms.AccessibleObject.DoDefaultAction() taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
3 Examples
0
1. Example
Project: referencesource
Source File: ActivityDesignerAccessibleObject.cs
Source File: ActivityDesignerAccessibleObject.cs
public override void DoDefaultAction() { ISelectionService selectionService = GetService(typeof(ISelectionService)) as ISelectionService; if (selectionService != null) selectionService.SetSelectedComponents(new object[] { this.activityDesigner.Activity }, SelectionTypes.Replace); else base.DoDefaultAction(); }
0
2. Example
Project: referencesource
Source File: SequenceDesignerAccessibleObject.cs
Source File: SequenceDesignerAccessibleObject.cs
public override void DoDefaultAction() { ISelectionService selectionService = GetService(typeof(ISelectionService)) as ISelectionService; if (selectionService != null) selectionService.SetSelectedComponents(new object[] { this.connectorHitInfo.SelectableObject }, SelectionTypes.Replace); else base.DoDefaultAction(); }
0
3. Example
Project: OpenLiveWriter
Source File: LCCCFocusAndAccessibilityController.cs
Source File: LCCCFocusAndAccessibilityController.cs
public bool DoDefaultAction() { int index = GetFocusedControlIndex(); if (index >= 0) { if (_controls[index] is Control) return false; AccessibleObject obj = GetAccessibleObject(index); obj.DoDefaultAction(); return true; } return false; }