Imports a metafile and converts it to a grouping of native application objects.
Namespace: Ico.GwxAssembly: GwxConfigCore (in GwxConfigCore.dll) Version: 10.97.212.0 (10.97.212.00)
Syntax
C# |
---|
public GwxElement ImportMetafile(
Metafile metafile,
Rect dimensions,
bool selectAfterImport,
bool showErrors,
IProgressContext context
) |
Visual Basic |
---|
Public Function ImportMetafile ( _
metafile As Metafile, _
dimensions As Rect, _
selectAfterImport As Boolean, _
showErrors As Boolean, _
context As IProgressContext _
) As GwxElement |
JScript |
---|
public function ImportMetafile(
metafile : Metafile,
dimensions : Rect,
selectAfterImport : boolean,
showErrors : boolean,
context : IProgressContext
) : GwxElement |
Parameters
- metafile
- Type: System.Drawing.Imaging..::..Metafile
The metafile to import/convert.
- dimensions
- Type: System.Windows..::..Rect
The new dimensions for the imported metafile.
Specify Width/Height=0 to retain the original size of the metafile.
Specify Left/Top=NaN to retain the original poistion of the metafile.
- selectAfterImport
- Type: System..::..Boolean
The to select the metafile group after importing.
- showErrors
- Type: System..::..Boolean
True to show error messages regarding the metafile conversion, false to suppress warning messages.
- context
- Type: IProgressContext
The progress context to be used during the import.
Return Value
The imported metafile group, or null if there was an error during conversion.
See Also