ImageField.GetDisplayImage Method
Gets the image to be displayed by this field.
Namespace: Microsoft.VisualStudio.Modeling.Diagrams
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0.dll)
Syntax
'Déclaration
Public Overridable Function GetDisplayImage ( _
parentShape As ShapeElement _
) As Image
public virtual Image GetDisplayImage(
ShapeElement parentShape
)
public:
virtual Image^ GetDisplayImage(
ShapeElement^ parentShape
)
abstract GetDisplayImage :
parentShape:ShapeElement -> Image
override GetDisplayImage :
parentShape:ShapeElement -> Image
public function GetDisplayImage(
parentShape : ShapeElement
) : Image
Parameters
- parentShape
Type: Microsoft.VisualStudio.Modeling.Diagrams.ShapeElement
The parent ShapeElement of this field.
Return Value
Type: System.Drawing.Image
Remarks
Override this method to customize your display image prior to drawing.
Examples
For an example, see ImageField.
.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.