ShapeElement::AssociateValueWith Method (Store^, AssociatedPropertyInfo^)

 

Associates the resource for the shape with an in-memory store property that is assigned to the shape.

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

public:
static void AssociateValueWith(
	Store^ store,
	AssociatedPropertyInfo^ propertyInfo
)

Parameters

store
Type: Microsoft.VisualStudio.Modeling::Store^

The in-memory store.

propertyInfo
Type: Microsoft.VisualStudio.Modeling.Diagrams::AssociatedPropertyInfo^

The properties for the shape.

propertyGuid

The guid of a Property on a DomainClass

domainPresentationNavigator

Deletegate to traverse from domain element to presentation element.

presentationDomainNavigator

Deletegate to traverse from presentation element to domain element.

ShapeElement resources can be associated with an IMS property. The associated ShapeElements will automatically update by receiving Invalidate calls when the IMS property value changes. You can change resources in response to the changes by overriding the OnPrePaint method and changing the resources there.

Return to top
Show: