Freigeben über


Diagram.CreateBitmap Method

Creates an image of the selected shapes.

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 Function CreateBitmap ( _
    selectedElements As ICollection, _
    creationPreference As Diagram..::..CreateBitmapPreference _
) As Bitmap
public Bitmap CreateBitmap(
    ICollection selectedElements,
    Diagram..::..CreateBitmapPreference creationPreference
)
public:
Bitmap^ CreateBitmap(
    ICollection^ selectedElements, 
    Diagram..::..CreateBitmapPreference creationPreference
)
member CreateBitmap : 
        selectedElements:ICollection * 
        creationPreference:Diagram..::..CreateBitmapPreference -> Bitmap 
public function CreateBitmap(
    selectedElements : ICollection, 
    creationPreference : Diagram..::..CreateBitmapPreference
) : Bitmap

Parameters

Return Value

Type: System.Drawing.Bitmap
The image of the selected shapes; otherwise, nulla null reference (Nothing in Visual Basic) if no shapes were selected.

.NET Framework Security

See Also

Reference

Diagram Class

Microsoft.VisualStudio.Modeling.Diagrams Namespace