次の方法で共有


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.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0.dll)

Syntax

'宣言
Public Shared Sub AssociateValueWith ( _
    store As Store, _
    propertyInfo As AssociatedPropertyInfo _
)
public static void AssociateValueWith(
    Store store,
    AssociatedPropertyInfo propertyInfo
)
public:
static void AssociateValueWith(
    Store^ store, 
    AssociatedPropertyInfo^ propertyInfo
)
static member AssociateValueWith : 
        store:Store * 
        propertyInfo:AssociatedPropertyInfo -> unit 
public static function AssociateValueWith(
    store : Store, 
    propertyInfo : AssociatedPropertyInfo
)

Parameters

Remarks

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.

.NET Framework Security

See Also

Reference

ShapeElement Class

AssociateValueWith Overload

Microsoft.VisualStudio.Modeling.Diagrams Namespace