Freigeben über


ShapeElement.RelatedShapeToEmphasize Property

Gets the related shape to visually emphasize to the user when this shape is selected.

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

Syntax

'Declaration
Public Overridable ReadOnly Property RelatedShapeToEmphasize As ShapeElement
    Get
public virtual ShapeElement RelatedShapeToEmphasize { get; }
public:
virtual property ShapeElement^ RelatedShapeToEmphasize {
    ShapeElement^ get ();
}
abstract RelatedShapeToEmphasize : ShapeElement
override RelatedShapeToEmphasize : ShapeElement
function get RelatedShapeToEmphasize () : ShapeElement

Property Value

Type: Microsoft.VisualStudio.Modeling.Diagrams.ShapeElement
The related shape to visually emphasize; otherwise, nulla null reference (Nothing in Visual Basic), if there is no related shape to emphasize.

Remarks

The emphasis is different from selection and does not indicate that the related shape is selected. The intent is to draw the user's attentionto the related shape to help provide context.

This feature is particularly useful to emphasize the parent of a relative child shape such as a label. For example, when the user selects a label attached to a connector, it might not be clear which connector the label is associated with. You can override this property to return the parent shape.

.NET Framework Security

See Also

Reference

ShapeElement Class

Microsoft.VisualStudio.Modeling.Diagrams Namespace