ShapeSubField Class
A sub component of a ShapeField that is optionally selectable, focusable, hit-testable, in-place-editable, and IAccessible. Examples of a ShapeSubField are list items in a list field, grid cells and grid lines in a grid field, and radio buttons in a radio button group. ShapeSubFields are only created as needed. For example, a grid containing 10,000 cells only needs to create a subfield for a cell when the subfield is selected, focused, hit-tested, edited, or accessed via IAccessible.
Inheritance Hierarchy
System.Object
Microsoft.VisualStudio.Modeling.Diagrams.ShapeSubField
Microsoft.VisualStudio.Modeling.Diagrams.ListItemSubField
Namespace: Microsoft.VisualStudio.Modeling.Diagrams
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0.dll)
Syntax
'Declaration
Public MustInherit Class ShapeSubField
public abstract class ShapeSubField
public ref class ShapeSubField abstract
[<AbstractClass>]
type ShapeSubField = class end
public abstract class ShapeSubField
The ShapeSubField type exposes the following members.
Constructors
Name | Description | |
---|---|---|
ShapeSubField | Initializes a new instance of the ShapeSubField class. |
Top
Properties
Name | Description | |
---|---|---|
SubFieldHashCode | Gets a hash code for this ShapeSubField. |
Top
Methods
Name | Description | |
---|---|---|
AccessibleDoDefaultAction | Performs the default action associated with this accessible object. | |
CanEditValue | Returns a value indicating whether the value of this subfield can be edited. | |
CommitPendingEdit | Commits the pending edit. | |
DoKeyboardNavigation | Calls the appropriate navigation method on the shape sub-field. | |
EditValue(ShapeElement, ShapeField, DiagramClientView) | Invokes the in-place editor. | |
EditValue(ShapeElement, ShapeField, DiagramClientView, PointD) | Invokes the in-place editor, setting the caret using the specified mouse position. | |
Equals | (Overrides Object.Equals(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.) | |
GetAccessibilityObject | Gets the AccessibleObject assigned to the subfield. | |
GetAccessibleDefaultActionDescription | Gets a string that describes the default action of the object. Not all objects have a default action. | |
GetAccessibleDescription | Returns the accessible description. | |
GetAccessibleHelp | Gets a description of what the object does or how the object is used. | |
GetAccessibleHelpTopicFileName | Gets the path to the Help file associated with this accessible object. | |
GetAccessibleHelpTopicId | Gets an identifier for a Help topic identifier associated with this accessible object. | |
GetAccessibleName | Returns the accessible name. | |
GetAccessibleRole | Returns the accessible role. | |
GetAccessibleValue | ||
GetActiveInPlaceEditor | Returns the control for the active in-place editor. This method may return null, in which case no in-place editor is active for this subfield. | |
GetBounds | Returns the bounds in world coordinates relative to the top-left of the parent shape. | |
GetCursor | Gets the cursor that is displayed when the mouse pointer is over the ShapeSubField. | |
GetFocusable | Gets a value indicating whether this ShapeSubField is focusable. | |
GetHashCode | (Overrides Object.GetHashCode().) | |
GetInPlaceEditorBounds | Returns the bounds of the in-place editor relative to its parent shape in world units. | |
GetPotentialMouseAction | Retrieves a mouse action that should be made active on the next MouseDown event if the mouse is over the specified point. | |
GetSelectable | Gets a value indicating whether this ShapeSubField is selectable. | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
HasPendingEdit | Returns a value indicating whether in-place editing is active, with a commit pending. | |
IsNavigationKey(Char) | Returns a value indicating whether the specified character corresponds to a navigational command. | |
IsNavigationKey(Keys) | Returns a value indicating whether the specified key data corresponds to a navigational command. | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
NavigateAscend | Called by this ShapeSubField to set focus to its first ancestor in the navigation sequence. | |
NavigateTo | Sets the focus to the specified DiagramItem. | |
NavigateToFirst | Called by this ShapeSubField to set focus to this subfield's first sibling (i.e., the parent's first child) in the navigation sequence. | |
NavigateToLast | Called by this ShapeSubField to set focus to this subfield's last sibling (i.e., the parent's last child) in the navigation sequence. | |
NavigateToNext | Called by this ShapeSubField to set focus to the next object in the navigation sequence. | |
NavigateToPrevious | Called by this ShapeSubField to set focus to the previous object in the navigation sequence. | |
OnBeginEdit | Called when in-place editing has begun. | |
OnClick | Called by the control's OnClick(). | |
OnDoubleClick | Called by the control's OnDoubleClick(). | |
OnEndEdit | Called when in-place editing has ended. | |
OnKeyDown | Called when a key is pressed. To be called, this ShapeSubField must be the focused ShapeSubField in the selection. | |
OnKeyPress | Called between a key down and key up. To be called, this ShapeSubField must be the focused ShapeSubField in the selection. | |
OnKeyUp | Called when a key is released. To be called, this ShapeSubField must be the focused ShapeSubField in the selection. | |
OnMouseDown | Called by the control's OnMouseDown(). | |
OnMouseMove | Called by the control's OnMouseMove(). | |
OnMouseUp | Called by the control's OnMouseUp(). | |
OnMouseWheel | Called by the control's OnMouseWheel(). | |
SubFieldEquals | Gets a value indicating whether this ShapeSubField and the specified ShapeSubField are equal. | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Top
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.