Construct a new ExpandCollapseDecorator.
Namespace:  Microsoft.VisualStudio.Modeling.Diagrams
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0.dll)
Syntax
声明
Public Sub New ( _
    store As Store, _
    field As ToggleButtonField, _
    position As ShapeDecoratorPosition, _
    offset As PointD _
)
public ExpandCollapseDecorator(
    Store store,
    ToggleButtonField field,
    ShapeDecoratorPosition position,
    PointD offset
)
public:
ExpandCollapseDecorator(
    Store^ store, 
    ToggleButtonField^ field, 
    ShapeDecoratorPosition position, 
    PointD offset
)
new : 
        store:Store * 
        field:ToggleButtonField * 
        position:ShapeDecoratorPosition * 
        offset:PointD -> ExpandCollapseDecorator
public function ExpandCollapseDecorator(
    store : Store, 
    field : ToggleButtonField, 
    position : ShapeDecoratorPosition, 
    offset : PointD
)
Parameters
- store
Type: Microsoft.VisualStudio.Modeling.Store
Store containing shapes that will host this decorator. 
- field
Type: Microsoft.VisualStudio.Modeling.Diagrams.ToggleButtonField
ShapeField used by the decorator. 
- position
Type: Microsoft.VisualStudio.Modeling.Diagrams.ShapeDecoratorPosition
Decorator position. 
- offset
Type: Microsoft.VisualStudio.Modeling.Diagrams.PointD
Offset used to modify the default position of the decorator specified by position. 
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.