PlusMinusButtonField 类

定义

表示加/减按钮的 ShapeField

public ref class PlusMinusButtonField : Microsoft::VisualStudio::Modeling::Diagrams::ToggleButtonField
public class PlusMinusButtonField : Microsoft.VisualStudio.Modeling.Diagrams.ToggleButtonField
type PlusMinusButtonField = class
    inherit ToggleButtonField
Public Class PlusMinusButtonField
Inherits ToggleButtonField
继承
PlusMinusButtonField

构造函数

PlusMinusButtonField(String)
PlusMinusButtonField(String, Image, Image)

属性

AnchoringBehavior

获取此 ShapeField 的 AnchoringBehavior。

(继承自 ShapeField)
DefaultAccessibleDescription

获取或设置默认的可访问说明。

(继承自 ShapeField)
DefaultAccessibleName

获取或设置默认的可访问名称。

(继承自 ShapeField)
DefaultAccessibleState

获取或设置默认的可访问状态。

(继承自 ShapeField)
DefaultBackgroundBrushId

获取或设置要用于此 ShapeField 的默认背景画笔的 id。

(继承自 ShapeField)
DefaultFocusable

获取或设置一个值,该值指示 ShapeField 是否可以在默认情况下接收焦点。

(继承自 ShapeField)
DefaultInactiveSelectedBackgroundBrushId

获取或设置要用于此 ShapeField 的默认背景画笔的 id。

(继承自 ShapeField)
DefaultPenId

获取或设置要用于此 ShapeField 的默认笔的 id。

(继承自 ShapeField)
DefaultReflectParentFocusedState

获取或设置一个值,该值指示此字段是否应显示其父字段的焦点状态。

(继承自 ShapeField)
DefaultReflectParentSelectedState

获取或设置一个值,该值指示此字段是否应显示其父字段的选定状态。

(继承自 ShapeField)
DefaultSelectable

获取或设置一个值,该值指示是否可以在默认情况下选择 ShapeField。

(继承自 ShapeField)
DefaultSelectedBackgroundBrushId

获取或设置要用于此 ShapeField 的默认背景画笔的 id。

(继承自 ShapeField)
DefaultUnscaled

获取或设置一个值,该值指示是否应根据此字段的边界对图像进行无比例的绘制,或者应缩放图像以适合边界。

(继承自 ToggleButtonField)
DefaultVisibility

获取或设置一个值,该值指示 ShapeField 在默认情况下是否可见。

(继承自 ShapeField)
Name

获取此 ShapeField 的唯一标识符。

(继承自 ShapeField)

方法

AccessibleDoDefaultAction(ShapeElement)

执行默认操作以展开/折叠 PlusMinusButtonField

AllowInPlaceEditorAutoSize(ShapeElement)

返回一个布尔值,该值指示是否应允许就地编辑器自动调整大小。 默认值为 false。

(继承自 ShapeField)
AssociateValueWith(Store, AssociatedPropertyInfo)

将此形状字段的值与 ShapeElement 上的域属性相关联。 当域属性是另一个属性的代理时,请使用此方法。

(继承自 ShapeField)
AssociateValueWith(Store, Guid)

将此形状字段的值与 ShapeElement 上的域属性相关联。 当域属性是另一个属性的代理时,请使用此方法。

(继承自 ShapeField)
AssociateValueWith(Store, Guid, AssociatedPropertyInfo)

当形状映射到给定域类的实例时,将此形状字段的值与 ShapeElement 上的域属性相关联。 如果有多个域类可以映射到,请使用此方法。

(继承自 ShapeField)
AssociateVisibilityWith(Store, AssociatedPropertyInfo)

将此形状字段的可见性与 ShapeElement 上的域属性相关联。

(继承自 ShapeField)
AssociateVisibilityWith(Store, Guid)

将此形状字段的可见性与 ShapeElement 上的域属性相关联。

(继承自 ShapeField)
AssociateVisibilityWith(Store, Guid, AssociatedPropertyInfo)

当形状映射到给定域类的实例时,将此形状字段的可见性与 ShapeElement 上的域属性相关联。 如果有多个域类可以映射到,请使用此方法。

(继承自 ShapeField)
CanEditValue(ShapeElement, DiagramClientView)

返回一个值,该值指示是否可以编辑此字段的值。

(继承自 ShapeField)
ChangeState(ShapeElement)

更改切换按钮的状态

(继承自 ToggleButtonField)
CommitPendingEdit(ShapeElement, DiagramClientView)

提交挂起的编辑。

(继承自 ShapeField)
CreateToggleButtonEventArgs(ShapeElement)

创建类的实例,该类负责切换按钮事件参数

(继承自 ToggleButtonField)
DoHitTest(PointD, ShapeElement, DiagramHitTestInfo)

获取一个值,该值指示指定点是否在 ShapeField 的边界内。

(继承自 ShapeField)
DoKeyboardNavigation(Keys, DiagramClientView, DiagramItem)

对形状字段调用适当的导航方法。

(继承自 ShapeField)
DoPaint(DiagramPaintEventArgs, ShapeElement)

绘制 ShapeField 的内容。

(继承自 ToggleButtonField)
EditValue(ShapeElement, DiagramClientView)

调用就地编辑器。

(继承自 ShapeField)
EditValue(ShapeElement, DiagramClientView, PointD)

调用就地编辑器,使用指定的鼠标位置设置插入符号。

(继承自 ShapeField)
FindFirstChild(ShapeElement, Boolean)

由此 ShapeField 调用,以获取其在导航序列中的第一个子字段子字段。

(继承自 ShapeField)
FindLastChild(ShapeElement, Boolean)

由此 ShapeField 调用以获取其导航序列中的最后一个子字段。

(继承自 ShapeField)
FindNextChild(DiagramItem, Boolean)

由 ShapeSubField 调用,以获取导航序列中后面的下一个同级项。

(继承自 ShapeField)
FindNextInChildSubFields(ShapeElement, DiagramItem, Boolean)

查找此 ShapeField 在导航序列中的下一个子字段子字段。

(继承自 ShapeField)
FindPreviousChild(DiagramItem, Boolean)

由 ShapeSubField 调用,以获取导航序列中其前一个同级项。

(继承自 ShapeField)
FindPreviousInChildSubFields(ShapeElement, DiagramItem, Boolean)

查找此 ShapeField 在导航序列中的前一个子字段子字段。

(继承自 ShapeField)
Focused(ShapeElement, DiagramClientView)

获取一个值,该值指示 ShapeField 是否具有焦点。

(继承自 ShapeField)
GetAccessibilityObject(ShapeElement, DiagramClientView)

获取分配给该字段的 AccessibleObject。

(继承自 ShapeField)
GetAccessibleChild(ShapeElement, Int32)

检索对应于指定索引的辅助性子子字段。

(继承自 ShapeField)
GetAccessibleChildCount(ShapeElement)

检索属于此 ShapeField 的可访问子级的数目。

(继承自 ShapeField)
GetAccessibleDefaultActionDescription(ShapeElement)

获取描述 PlusMinusButtonField 的默认操作的字符串

GetAccessibleDescription(ShapeElement)

返回加/减按钮字段的默认辅助性说明。

GetAccessibleHelp(ShapeElement)

获取对象用途或如何使用对象的说明。

(继承自 ShapeField)
GetAccessibleHelpTopicFileName(ShapeElement)

获取与此辅助功能对象相关联的帮助文件的路径。

(继承自 ShapeField)
GetAccessibleHelpTopicId(ShapeElement)

获取与此辅助功能对象关联的帮助主题标识符的标识符。

(继承自 ShapeField)
GetAccessibleName(ShapeElement)

返回加/减按钮字段的默认可访问名称。

GetAccessibleRole(ShapeElement)

检索此 ShapeField 的辅助性角色。

GetAccessibleState(ShapeElement, DiagramClientView)

检索此 ShapeField 的可访问状态。

GetAccessibleValue(ShapeElement)

返回可访问的值。

(继承自 ShapeField)
GetActiveInPlaceEditor(ShapeElement, DiagramClientView)

返回活动的就地编辑器的控件。 此方法可能返回 null,在这种情况下,此字段没有任何就地编辑器处于活动状态。

(继承自 ShapeField)
GetBackgroundBrush(DiagramClientView, ShapeElement, Color)

获取要为指定的 ShapeElement 实例绘制的背景画笔。

(继承自 ShapeField)
GetBackgroundBrushId(DiagramClientView, ShapeElement)

获取要为指定的 ShapeElement 实例绘制的背景画笔的 id。

(继承自 ShapeField)
GetBounds(ShapeElement)

相对于父形状的左上角,获取此 ShapeField 在世界单位内的边界。

(继承自 ShapeField)
GetButtonImage(ShapeElement)

提供按钮的当前状态的图像

GetCursor(Cursor, DiagramClientView, PointD)

获取当鼠标指针位于 ShapeField 上时显示的光标。

(继承自 ShapeField)
GetFocusable(ShapeElement)

获取一个值,该值指示 ShapeField 是否可以接收焦点。

(继承自 ShapeField)
GetInPlaceEditorBounds(ShapeElement)

以世界单位返回就地编辑器相对于其父形状的边界。

(继承自 ShapeField)
GetMaximumInPlaceEditorSize(ShapeElement)

返回给定父形状的就地编辑器允许的最大界限。

(继承自 ShapeField)
GetMinimumInPlaceEditorSize(ShapeElement)

返回给定父形状的就地编辑器允许的最小界限。

(继承自 ShapeField)
GetMinimumSize(ShapeElement)

返回 ImageField 的最小大小,即要显示的图像的大小,或 AnchoringBehavior 中指定的最小大小(以较大者为准)。 如果形状字段是无比例的,则始终使用 AnchoringBehavior 大小。

(继承自 ToggleButtonField)
GetPen(DiagramClientView, ShapeElement, Color)

获取要为指定的 ShapeElement 实例绘制的笔。

(继承自 ShapeField)
GetPenId(ShapeElement)

获取用于指定 ShapeElement 实例的笔的 id。

(继承自 ShapeField)
GetPotentialMouseAction(MouseButtons, PointD, DiagramHitTestInfo)

检索一个鼠标操作,该操作应在鼠标位于指定点上时,在下一个 MouseDown 事件上处于活动状态。

GetSelectable(ShapeElement)

获取一个值,该值指示 ShapeField 是否可选择。

(继承自 ShapeField)
GetUnscaled(ShapeElement)

获取是否应不按比例绘制按钮图像。

(继承自 ToggleButtonField)
GetValue(ShapeElement)

获取指定的 ShapeElement 实例的此 ShapeField 的值。

(继承自 ShapeField)
GetValueDomainPropertyInfo(ShapeElement)

获取此字段的值的 DomainPropertyInfo。

(继承自 ShapeField)
GetVisible(ShapeElement)

获取一个值,该值指示 ShapeField 是否可见

(继承自 ShapeField)
HasFocusedAppearance(ShapeElement, DiagramClientView)

返回一个值,该值指示此字段是否应将该字段显示为聚焦字段。 当此字段反映其父项的焦点状态时,此属性可能与焦点属性不同。 (参阅 DefaultReflectParentFocusedState 属性。 )

(继承自 ShapeField)
HasPendingEdit(ShapeElement, DiagramClientView)

返回一个值,该值指示就地编辑是否处于活动状态,并且提交处于挂起状态。

(继承自 ShapeField)
HasSelectedAppearance(ShapeElement, DiagramClientView)

返回一个值,该值指示此字段是否应显示选定的字段。 当此字段反映其父项的选定状态时,此字段可能与所选属性不同。 (参阅 DefaultReflectParentSelectedState 属性。 )

(继承自 ShapeField)
IsNavigationKey(Char)

返回一个值,该值指示指定的字符是否对应于导航命令。

(继承自 ShapeField)
IsNavigationKey(Keys)

返回一个值,该值指示指定的键数据是否对应于一个导航命令。

(继承自 ShapeField)
NavigateAscend(ShapeElement, SelectedShapesCollection)

由此 ShapeField 调用以将焦点设置到导航序列中其第一个可设定焦点的上级。

(继承自 ShapeField)
NavigateDescend(ShapeElement, SelectedShapesCollection)

由此 ShapeField 调用以将焦点设置到导航序列中其第一个可设定焦点的后代。

(继承自 ShapeField)
NavigateToFirst(ShapeElement, SelectedShapesCollection)

由此 ShapeField 调用以将焦点设置到此字段的第一个同级 (即导航序列中父级的第一个子) 。

(继承自 ShapeField)
NavigateToLast(ShapeElement, SelectedShapesCollection)

由此 ShapeField 调用,以将焦点设置到此字段的最后一个同级 (即,父级的最后一个子) 导航序列。

(继承自 ShapeField)
NavigateToNext(ShapeElement, SelectedShapesCollection)

由此 ShapeField 调用以将焦点设置到导航序列中的下一个对象。

(继承自 ShapeField)
NavigateToPrevious(ShapeElement, SelectedShapesCollection)

由此 ShapeField 调用以将焦点设置到导航序列中的上一个对象。

(继承自 ShapeField)
OnBeginEdit(DiagramItemEventArgs)

在开始进行就地编辑时调用。

(继承自 ShapeField)
OnClick(DiagramPointEventArgs)

由控件的 OnClick () 调用。

(继承自 ShapeField)
OnDoubleClick(DiagramPointEventArgs)

由该控件的 OnDoubleClick () 调用。

(继承自 ShapeField)
OnEndEdit(DiagramItemEventArgs)

就地编辑结束时调用。

(继承自 ShapeField)
OnKeyDown(DiagramKeyEventArgs)

当按下键时调用。 若要调用,此 ShapeField 必须是所选内容中的聚焦 ShapeField。

(继承自 ShapeField)
OnKeyPress(DiagramKeyPressEventArgs)

在键按下和键时调用。 若要调用,此 ShapeField 必须是所选内容中的聚焦 ShapeField。

(继承自 ShapeField)
OnKeyUp(DiagramKeyEventArgs) (继承自 ToggleButtonField)
OnMouseDown(DiagramMouseEventArgs)

由控件的 OnMouseDown () 调用。

(继承自 ShapeField)
OnMouseMove(DiagramMouseEventArgs)

由控件的 OnMouseMove () 调用。

(继承自 ShapeField)
OnMouseUp(DiagramMouseEventArgs)

处理按钮的鼠标单击

(继承自 ToggleButtonField)
OnMouseWheel(DiagramMouseEventArgs)

由该控件的 OnMouseWheel () 调用。

(继承自 ShapeField)
Selected(ShapeElement, DiagramClientView)

返回一个值,该值指示是否选择了字段。

(继承自 ShapeField)
SetSelectionRange(SelectedShapesCollection, DiagramItem, DiagramItem)

将选择设置为一系列子字段

(继承自 ShapeField)
SetValue(ShapeElement, Object)

为指定的 ShapeElement 实例设置此 ShapeField 的值。

(继承自 ShapeField)
SetVisible(ShapeElement, Object)

为指定的 ShapeElement 实例设置此 ShapeField 的可见性。

(继承自 ShapeField)

事件

ToggleButtonStateChanging (继承自 ToggleButtonField)

适用于