Share via


Decorator Members

Include Protected Members
Include Inherited Members

When overridden in a derived class, represents a decorator element in the diagram.

The Decorator type exposes the following members.

Constructors

 

Name

Description

Protected method

Decorator

Initializes a new instance of the Decorator class.

Top

Methods

 

Name

Description

Public method

AssociateValueWith

Overloaded. Associates the decorator with a property that is assigned to the shape's in-memory store.

Public method

AssociateVisibilityWith

Overloaded. Associates the visibility of the decorator with a store property that is assigned to a shape.

Public method

ConfigureHostShape

Creates a host shape or configures an existing host shape.

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

GetHashCode

Serves as a hash function for a particular type. (Inherited from Object.)

Public method

GetHostShape

Gets the host shape.

Public method

GetType

Gets the type of the current instance. (Inherited from Object.)

Public method

GetValue

Gets the association between the decorator and a shape.

Public method

GetVisible

Gets the visibility of the decorator that is assigned to a shape.

Protected method

MemberwiseClone

Creates a shallow copy of the current Object. (Inherited from Object.)

Protected method

OnAfterOffsetChanged

Enables derived classes to modify the decorator after the offset has changed.

Public method

RepositionHostShape

Repositions the host shape and sets its visibility.

Public method

SetValue

Sets the association with the decoration and a shape.

Public method

SetVisible

Sets the visibility of a decorator that is assigned to a shape.

Public method

ToString

Returns a string that represents the current object. (Inherited from Object.)

Public method

UpdateDecoratorHostShapes

Overloaded. Updates the bounds for the host shapes.

Public method

UpdateHostShapeVisibility

Updates the visibility of the host shape.

Top

Properties

 

Name

Description

Protected property

DecoratorAnchorMargins

Gets the margin around the field. The decorator can attach itself to the field in this area.

Public property

Field

Gets the field to which the decorator is assigned.

Public property

Offset

Gets or sets the offset that modifies the default position of the decorator.

Public property

RequiresHost

Gets the decorator and verifies whether the position between it and the shape requires a host shape.

Top

See Also

Reference

Decorator Class

Microsoft.VisualStudio.Modeling.Diagrams Namespace