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.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0.dll)
Syntax
声明
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 | |
|---|---|---|
| .gif) | ShapeSubField | Initializes a new instance of the ShapeSubField class. | 
Top
Properties
| Name | Description | |
|---|---|---|
| .gif) | SubFieldHashCode | Gets a hash code for this ShapeSubField. | 
Top
Methods
| Name | Description | |
|---|---|---|
| .gif) | AccessibleDoDefaultAction | Performs the default action associated with this accessible object. | 
| .gif) | CanEditValue | Returns a value indicating whether the value of this subfield can be edited. | 
| .gif) | CommitPendingEdit | Commits the pending edit. | 
| .gif) | DoKeyboardNavigation | Calls the appropriate navigation method on the shape sub-field. | 
| .gif) | EditValue(ShapeElement, ShapeField, DiagramClientView) | Invokes the in-place editor. | 
| .gif) | EditValue(ShapeElement, ShapeField, DiagramClientView, PointD) | Invokes the in-place editor, setting the caret using the specified mouse position. | 
| .gif) | Equals | (Overrides Object.Equals(Object).) | 
| .gif) | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | 
| .gif) | GetAccessibilityObject | Gets the AccessibleObject assigned to the subfield. | 
| .gif) | GetAccessibleDefaultActionDescription | Gets a string that describes the default action of the object. Not all objects have a default action. | 
| .gif) | GetAccessibleDescription | Returns the accessible description. | 
| .gif) | GetAccessibleHelp | Gets a description of what the object does or how the object is used. | 
| .gif) | GetAccessibleHelpTopicFileName | Gets the path to the Help file associated with this accessible object. | 
| .gif) | GetAccessibleHelpTopicId | Gets an identifier for a Help topic identifier associated with this accessible object. | 
| .gif) | GetAccessibleName | Returns the accessible name. | 
| .gif) | GetAccessibleRole | Returns the accessible role. | 
| .gif) | GetAccessibleValue | |
| .gif) | 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. | 
| .gif) | GetBounds | Returns the bounds in world coordinates relative to the top-left of the parent shape. | 
| .gif) | GetCursor | Gets the cursor that is displayed when the mouse pointer is over the ShapeSubField. | 
| .gif) | GetFocusable | Gets a value indicating whether this ShapeSubField is focusable. | 
| .gif) | GetHashCode | (Overrides Object.GetHashCode().) | 
| .gif) | GetInPlaceEditorBounds | Returns the bounds of the in-place editor relative to its parent shape in world units. | 
| .gif) | GetPotentialMouseAction | Retrieves a mouse action that should be made active on the next MouseDown event if the mouse is over the specified point. | 
| .gif) | GetSelectable | Gets a value indicating whether this ShapeSubField is selectable. | 
| .gif) | GetType | Gets the Type of the current instance. (Inherited from Object.) | 
| .gif) | HasPendingEdit | Returns a value indicating whether in-place editing is active, with a commit pending. | 
| .gif) | IsNavigationKey(Char) | Returns a value indicating whether the specified character corresponds to a navigational command. | 
| .gif) | IsNavigationKey(Keys) | Returns a value indicating whether the specified key data corresponds to a navigational command. | 
| .gif) | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | 
| .gif) | NavigateAscend | Called by this ShapeSubField to set focus to its first ancestor in the navigation sequence. | 
| .gif) | NavigateTo | Sets the focus to the specified DiagramItem. | 
| .gif) | 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. | 
| .gif) | 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. | 
| .gif) | NavigateToNext | Called by this ShapeSubField to set focus to the next object in the navigation sequence. | 
| .gif) | NavigateToPrevious | Called by this ShapeSubField to set focus to the previous object in the navigation sequence. | 
| .gif) | OnBeginEdit | Called when in-place editing has begun. | 
| .gif) | OnClick | Called by the control's OnClick(). | 
| .gif) | OnDoubleClick | Called by the control's OnDoubleClick(). | 
| .gif) | OnEndEdit | Called when in-place editing has ended. | 
| .gif) | OnKeyDown | Called when a key is pressed. To be called, this ShapeSubField must be the focused ShapeSubField in the selection. | 
| .gif) | OnKeyPress | Called between a key down and key up. To be called, this ShapeSubField must be the focused ShapeSubField in the selection. | 
| .gif) | OnKeyUp | Called when a key is released. To be called, this ShapeSubField must be the focused ShapeSubField in the selection. | 
| .gif) | OnMouseDown | Called by the control's OnMouseDown(). | 
| .gif) | OnMouseMove | Called by the control's OnMouseMove(). | 
| .gif) | OnMouseUp | Called by the control's OnMouseUp(). | 
| .gif) | OnMouseWheel | Called by the control's OnMouseWheel(). | 
| .gif) | SubFieldEquals | Gets a value indicating whether this ShapeSubField and the specified ShapeSubField are equal. | 
| .gif) | 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.