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
'宣告
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
- selectedElements
Type: System.Collections.ICollection
The selected shapes.
- creationPreference
Type: Microsoft.VisualStudio.Modeling.Diagrams.Diagram.CreateBitmapPreference
How the image should be created. For a list of preferences, see Diagram.CreateBitmapPreference.
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
- 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.