共用方式為


PlusMinusButtonField Class

A ShapeField that represents plus/minus button

Inheritance Hierarchy

System.Object
  Microsoft.VisualStudio.Modeling.Diagrams.ShapeField
    Microsoft.VisualStudio.Modeling.Diagrams.ToggleButtonField
      Microsoft.VisualStudio.Modeling.Diagrams.PlusMinusButtonField

Namespace:  Microsoft.VisualStudio.Modeling.Diagrams
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0.dll)

Syntax

'宣告
Public Class PlusMinusButtonField _
    Inherits ToggleButtonField
public class PlusMinusButtonField : ToggleButtonField
public ref class PlusMinusButtonField : public ToggleButtonField
type PlusMinusButtonField =  
    class
        inherit ToggleButtonField
    end
public class PlusMinusButtonField extends ToggleButtonField

The PlusMinusButtonField type exposes the following members.

Constructors

  Name Description
Public method PlusMinusButtonField(String)
Public method PlusMinusButtonField(String, Image, Image)

Top

Properties

  Name Description
Public property AnchoringBehavior Describes how the content of the field should position and size itself in relation to the parent ShapeElement. (Inherited from ShapeField.)
Public property DefaultAccessibleDescription Gets or sets the default accessible description. (Inherited from ShapeField.)
Public property DefaultAccessibleName Gets or sets the default name of the shape field for the accessible object. (Inherited from ShapeField.)
Public property DefaultAccessibleState Gets the default state of the shape field for the accessible object. (Inherited from ShapeField.)
Public property DefaultBackgroundBrushId Gets or sets the ID of the default brush to paint the background of the shape field. (Inherited from ShapeField.)
Public property DefaultFocusable Gets the shape field and verifies whether it can receive focus, or gives the shape field the ability to receive focus. (Inherited from ShapeField.)
Public property DefaultInactiveSelectedBackgroundBrushId Gets or sets the ID of the default background brush for the shape field. (Inherited from ShapeField.)
Public property DefaultPenId Gets or sets the ID of the default pen to use for the shape field. (Inherited from ShapeField.)
Public property DefaultReflectParentFocusedState Gets the child shape field and verifies whether it should receive focus when its parent shape receives focus or sets the ability to reflect the focus state of its parent shape. (Inherited from ShapeField.)
Public property DefaultReflectParentSelectedState Gets the child shape field and verifies whether it should be selected when its parent shape is selected or sets the ability to reflect the selection state of its parent shape. (Inherited from ShapeField.)
Public property DefaultSelectable Gets the shape field and verifies whether it can be selected by default or sets the default selection state of the shape field. (Inherited from ShapeField.)
Public property DefaultSelectedBackgroundBrushId Gets or sets the ID of the default background brush for the shape field. (Inherited from ShapeField.)
Public property DefaultUnscaled Gets or sets a value indicating whether the image should be drawn unscaled with regards to the bounds of this field or the image should be scaled to fit the bounds. (Inherited from ToggleButtonField.)
Public property DefaultVisibility Gets the shape field and verifies whether it appears by default or sets the default visibility of the shape field. (Inherited from ShapeField.)
Public property Name Gets the name of the shape field. (Inherited from ShapeField.)

Top

Methods

  Name Description
Public method AccessibleDoDefaultAction Performs the default action to expand/collapse the PlusMinusButtonField (Overrides ShapeField.AccessibleDoDefaultAction(ShapeElement).)
Public method AllowInPlaceEditorAutoSize Enables the in-place editor to be automatically sized in the shape field. (Inherited from ShapeField.)
Public method AssociateValueWith(Store, AssociatedPropertyInfo) Associates the shape field with a domain property that is assigned to a shape element. (Inherited from ShapeField.)
Public method AssociateValueWith(Store, Guid) Associates the shape field with a domain property that is assigned to a shape element. (Inherited from ShapeField.)
Public method AssociateValueWith(Store, Guid, AssociatedPropertyInfo) Associates the shape field with a domain property that is assigned to a shape element. (Inherited from ShapeField.)
Public method AssociateVisibilityWith(Store, AssociatedPropertyInfo) Associates the visibility of the shape field with a domain property that is assigned to a shape element. (Inherited from ShapeField.)
Public method AssociateVisibilityWith(Store, Guid) Associates the visibility of the shape field with a domain property that is assigned to a shape element. (Inherited from ShapeField.)
Public method AssociateVisibilityWith(Store, Guid, AssociatedPropertyInfo) Associates the visibility of the shape field with a domain property that is assigned to a shape element. (Inherited from ShapeField.)
Public method CanEditValue Gets the shape field and verifies whether it can be edited. (Inherited from ShapeField.)
Public method ChangeState Change the state of the toggle button (Inherited from ToggleButtonField.)
Public method CommitPendingEdit Commits the pending edit. (Inherited from ShapeField.)
Protected method CreateToggleButtonEventArgs Create an instance of the class responsible for toggle button event arguments (Inherited from ToggleButtonField.)
Public method DoHitTest Performs a hit test on a specified point in the diagram to determine whether the point is in the bounds of the shape field. (Inherited from ShapeField.)
Public method DoKeyboardNavigation Navigates in the shape field by using the keyboard. (Inherited from ShapeField.)
Public method DoPaint Draws the contents of the ShapeField. (Inherited from ToggleButtonField.)
Public method EditValue(ShapeElement, DiagramClientView) Opens the in-place editor for the shape field. (Inherited from ShapeField.)
Public method EditValue(ShapeElement, DiagramClientView, PointD) Opens the in-place editor for the shape field. (Inherited from ShapeField.)
Public method Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method FindFirstChild Locates the first child shape field in the parent shape field. (Inherited from ShapeField.)
Public method FindLastChild Locates the last child shape field in the parent shape field. (Inherited from ShapeField.)
Public method FindNextChild Locates the next child shape field in the parent shape field. (Inherited from ShapeField.)
Public method FindNextInChildSubFields Locates the next child shape field in the navigation sequence. (Inherited from ShapeField.)
Public method FindPreviousChild Locates the previous child shape field in the parent shape field. (Inherited from ShapeField.)
Public method FindPreviousInChildSubFields Locates the previous child shape field in the navigation sequence. (Inherited from ShapeField.)
Public method Focused Gets the shape field and verifies whether it has focus. (Inherited from ShapeField.)
Public method GetAccessibilityObject Gets the accessibility object that is assigned to the shape field. (Inherited from ShapeField.)
Public method GetAccessibleChild Gets the Accessibility object for the child shape field. (Inherited from ShapeField.)
Public method GetAccessibleChildCount Gets the number of Accessibility objects that are assigned to the parent shape field and its child shape fields. (Inherited from ShapeField.)
Public method GetAccessibleDefaultActionDescription Gets a string that describes the default action of the PlusMinusButtonField (Overrides ShapeField.GetAccessibleDefaultActionDescription(ShapeElement).)
Public method GetAccessibleDescription Returns the default accessible description for an plus/minus button field. (Overrides ShapeField.GetAccessibleDescription(ShapeElement).)
Public method GetAccessibleHelp Gets the shape field Help for the accessible object. (Inherited from ShapeField.)
Public method GetAccessibleHelpTopicFileName Gets a topic in the Help for the accessible object. (Inherited from ShapeField.)
Public method GetAccessibleHelpTopicId Gets the ID that is assigned to the Help topic for the accessible object. (Inherited from ShapeField.)
Public method GetAccessibleName Returns the default accessible name for an plus/minus button field. (Overrides ShapeField.GetAccessibleName(ShapeElement).)
Public method GetAccessibleRole Retrieves the accessible role of this ShapeField. (Overrides ShapeField.GetAccessibleRole(ShapeElement).)
Public method GetAccessibleState Retrieves the accessible state of this ShapeField. (Overrides ShapeField.GetAccessibleState(ShapeElement, DiagramClientView).)
Public method GetAccessibleValue Gets the value in the shape field for the accessible object. (Inherited from ShapeField.)
Public method GetActiveInPlaceEditor Gets the in-place editor that is active. (Inherited from ShapeField.)
Public method GetBackgroundBrush Gets the brush that draws the background for the shape element to which this shape field is assigned. (Inherited from ShapeField.)
Public method GetBackgroundBrushId Gets the ID of the brush that draws the background for the shape element to which this shape field is assigned. (Inherited from ShapeField.)
Public method GetBounds Gets the bounds for the shape field. (Inherited from ShapeField.)
Protected method GetButtonImage Provides the image for the current state of the button (Overrides ToggleButtonField.GetButtonImage(ShapeElement).)
Public method GetCursor Gets the pointer that appears when the mouse is pointing to the shape field. (Inherited from ShapeField.)
Public method GetFocusable Gets the shape field and verifies whether it can receive focus. (Inherited from ShapeField.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetInPlaceEditorBounds Gets the bounds for the in-place editor. (Inherited from ShapeField.)
Public method GetMaximumInPlaceEditorSize Gets the maximum bounds for the in-place editor. (Inherited from ShapeField.)
Public method GetMinimumInPlaceEditorSize Gets the minimum bounds for the in-place editor. (Inherited from ShapeField.)
Public method GetMinimumSize Returns the minimum size of the ImageField, which is the size of the image to be displayed, or the minimum size specified in the AnchoringBehavior, whichever is larger. If the shape field is unscaled, then the AnchoringBehavior size is always used. (Inherited from ToggleButtonField.)
Public method GetPen Gets the pen that draws the shape element to which the shape field is assigned. (Inherited from ShapeField.)
Public method GetPenId Gets the ID of the pen that draws the shape element to which the shape field is assigned. (Inherited from ShapeField.)
Public method GetPotentialMouseAction Retrieves a mouse action that should be made active on the next MouseDown event if the mouse is over the specified point. (Overrides ToggleButtonField.GetPotentialMouseAction(MouseButtons, PointD, DiagramHitTestInfo).)
Public method GetSelectable Gets the shape field and verifies whether it can be selected. (Inherited from ShapeField.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method GetUnscaled Gets whether the button image should be drawn unscaled or not. (Inherited from ToggleButtonField.)
Public method GetValue Gets the value in the shape field. (Inherited from ShapeField.)
Public method GetValueDomainPropertyInfo Gets the domain property that is assigned to the value in the shape field. (Inherited from ShapeField.)
Public method GetVisible Gets the shape field and verifies whether it appears. (Inherited from ShapeField.)
Public method HasFocusedAppearance Gets the shape field and verifies whether it should appear to have the focus. (Inherited from ShapeField.)
Public method HasPendingEdit Gets the shape field and verifies whether its in-place editor is active and a change is pending. (Inherited from ShapeField.)
Public method HasSelectedAppearance Gets the shape field and verifies whether it appears to be selected. (Inherited from ShapeField.)
Public method IsNavigationKey(Char) Gets the key that the user pressed and verifies whether it can be used to navigate between shape fields. (Inherited from ShapeField.)
Public method IsNavigationKey(Keys) Gets the keys that the user pressed and verifies whether they can be used to navigate between shape fields. (Inherited from ShapeField.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method NavigateAscend Moves the focus to the previous shape field in the navigation sequence for the selected shapes. (Inherited from ShapeField.)
Public method NavigateDescend Moves the focus to the next shape field in the navigation sequence for the selected shapes. (Inherited from ShapeField.)
Public method NavigateToFirst Moves the focus to the first shape field in the navigation sequence for the selected shapes. (Inherited from ShapeField.)
Public method NavigateToLast Moves the focus to the last shape field in the navigation sequence for the selected shapes. (Inherited from ShapeField.)
Public method NavigateToNext Moves the focus to the next shape field in the navigation sequence for the selected shapes. (Inherited from ShapeField.)
Public method NavigateToPrevious Moves the focus to the previous shape field in the navigation sequence for the selected shapes. (Inherited from ShapeField.)
Protected method OnBeginEdit Alerts listeners when in-place editing has begun. (Inherited from ShapeField.)
Public method OnClick Alerts listeners when the user has clicked a shape field. (Inherited from ShapeField.)
Public method OnDoubleClick Alerts listeners when the user has double-clicked a shape field. (Inherited from ShapeField.)
Protected method OnEndEdit Alerts listeners when in-place editing has completed. (Inherited from ShapeField.)
Public method OnKeyDown Alerts listeners when the user has held down a key when pointing to a shape field. (Inherited from ShapeField.)
Public method OnKeyPress Alerts listeners when the user has pressed a key when pointing to a shape field. (Inherited from ShapeField.)
Public method OnKeyUp Alerts listeners when the user has released a key when pointing to a shape field. (Inherited from ShapeField.)
Public method OnMouseDown Alerts listeners when the user is holding down the mouse over a shape field. (Inherited from ShapeField.)
Public method OnMouseMove Alerts listeners when the mouse has been moved over a shape field. (Inherited from ShapeField.)
Public method OnMouseUp Handles mouse click on the button (Inherited from ToggleButtonField.)
Public method OnMouseWheel Alerts listeners when the mouse has been rotated over a shape field. (Inherited from ShapeField.)
Public method Selected Gets the shape field and verifies whether it is selected. (Inherited from ShapeField.)
Public method SetSelectionRange Sets the selection to a range of child shape fields. (Inherited from ShapeField.)
Public method SetValue Assigns the specified value to a shape field. (Inherited from ShapeField.)
Public method SetVisible Sets the visibility of the shape field. (Inherited from ShapeField.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Events

  Name Description
Public event ToggleButtonStateChanging (Inherited from ToggleButtonField.)

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.

See Also

Reference

Microsoft.VisualStudio.Modeling.Diagrams Namespace