FlexGrid for WinForms
CreateImage() Method
Example 



Creates an image of the entire grid.
Syntax
'Declaration
 
Public Overloads Function CreateImage() As Image
'Usage
 
Dim instance As C1FlexGridBase
Dim value As Image
 
value = instance.CreateImage()
public Image CreateImage()
public:
Image^ CreateImage(); 

Return Value

An System.Drawing.Image object containing a metafile image of the grid.
Remarks
Use this method to copy grid images to the clipboard so you can paste them into documents or other applications.
Example
The code below creates an image of a grid range and saves it to a PNG file that can be included in other documents such as web pages:
Image img = flex.CreateImage(0,0,10,5);
img.Save(@"c:\temp\grid.png", System.Drawing.Imaging.ImageFormat.Png);
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

C1FlexGridBase Class
C1FlexGridBase Members
Overload List

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Send Feedback