CorelDRAW Community
CorelDRAW Community
  • Site
  • User
  • Site
  • Search
  • User
Developer Area
Developer Area
  • Forums
  • Wikis
  • API References
  • Tags
  • More
  • Cancel
  • New
Developer Area requires membership for participation - click to join
Applications:
Corel DESIGNER
Corel PHOTO-PAINT
CorelDRAW
Versions:
CorelDRAW 2017
CorelDRAW 2018
CorelDRAW 2019
CorelDRAW 2019.2
CorelDRAW 2020
CorelDRAW 2020.1
CorelDRAW 2021
CorelDRAW 2021.5
CorelDRAW 2022-v24
CorelDRAW 2022-v24.1
CorelDRAW 2022-v24.2
CorelDRAW 2023-v24.3
CorelDRAW X7
CorelDRAW X7.4
CorelDRAW X7.6
CorelDRAW X8
Classes:
ActiveView
AIExport
Application
AppStatus
AppWindow
ArrowHead
ArrowHeadOptions
ArrowHeads
BBoxSnapPoint
Bitmap
BitmapImage
BMPExport
BSpline
BSplineControlPoint
BSplineControlPoints
CalloutShape
CEPSExport
CGMExport
CGMImport
Clipboard
CloneLink
Color
ColorContext
ColorManagementPolicy
ColorManager
ColorProfile
ColorProfiles
Colors
CommandBar
CommandBarMode
CommandBarModes
CommandBars
Component
Components
Connector
Control
Controls
CorelScriptTools
CrossPoint
CrossPoints
Curve
CustomEffect
CustomShape
DataContext
DataField
DataFields
DataItem
DataItems
DataSourceProxy
Dimension
DimensionAngular
DimensionLinear
DockHost
DockHosts
DockItem
DockItems
Document
Documents
DSFImport
Duotone
DuotoneInk
DuotoneOverprint
DXFExport
DXFImport
EdgeSnapPoint
Effect
EffectBevel
EffectBlend
EffectContour
EffectControlPath
EffectCustomDistortion
EffectDistortion
EffectDropShadow
EffectEnvelope
EffectExtrude
EffectInnerShadow
EffectLens
EffectPerspective
EffectPushPullDistortion
Effects
EffectTextOnPath
EffectTwisterDistortion
EffectZipperDistortion
Ellipse
EMFExport
EPS
ExportFilter
ExtrudeVanishingPoint
Fill
FillMetadata
FontList
FountainColor
FountainColors
FountainFill
FrameWindow
FrameWindows
FrameWork
GEMExport
GIFExport
GlobalMacroStorage
GMSMacro
GMSMacros
GMSManager
GMSProject
GMSProjects
Grid
Guide
HatchFill
HatchFills
HatchLibraries
HatchLibrary
HatchPattern
HatchPatterns
HPGLExport
HPGLImport
Image
ImageList
ImageTile
ImageTiles
ImportFilter
JP2Export
JPGExport
Layer
Layers
LocalizableString
MathUtils
Metadata
Node
NodeRange
Nodes
ObjectSnapPoint
OLE
OnScreenCurve
OnScreenHandle
OnScreenText
Outline
OutlineStyle
OutlineStyles
Page
Pages
PageSize
PageSizes
Palette
PaletteManager
Palettes
PatternCanvas
PatternCanvases
PatternFill
PDFVBASettings
PNGExport
Point
PointRange
Polygon
PostScriptFill
PowerClip
PrintDocuments
Printer
PrintJob
PrintLayout
PrintOptions
PrintPages
PrintPostScript
PrintPrepress
PrintSeparations
PrintSettings
PrintTrapping
ProofColorSettings
Properties
PSScreenOptions
RecentFile
RecentFiles
Rect
Rectangle
Rulers
ScreenRect
Segment
SegmentRange
Segments
SelectionInfo
SeparationPlate
SeparationPlates
Shape
ShapeRange
Shapes
SnapPoint
SnapPointRange
SnapPoints
Spread
Spreads
StatusText
StructAlignProperties
StructColorConversionOptions
StructCreateOptions
StructExportOptions
StructFontProperties
StructHyphenationSettings
StructImportCropOptions
StructImportOptions
StructImportResampleOptions
StructOpenOptions
StructPaletteOptions
StructPasteOptions
StructSaveAsOptions
StructSpaceProperties
Style
StyleCharacter
StyleFill
StyleFrame
StyleOutline
StyleParagraph
Styles
StyleSheet
StyleTransparency
SubPath
SubPaths
SVGExport
Symbol
SymbolDefinition
SymbolDefinitions
SymbolLibraries
SymbolLibrary
SystemPrinters
TableBorders
TableCell
TableCellRange
TableCells
TableColumn
TableColumns
TableRow
TableRows
TableShape
Text
TextCharacters
TextColumns
TextFrame
TextFrames
TextIndentLevelStyle
TextIndentLevelStyles
TextLines
TextParagraphs
TextRange
TextRanges
TextTabPosition
TextTabPositions
TextureFill
TextureFillProperties
TextureFillProperty
TextVariableAxes
TextVariableAxis
TextWords
TGAExport
ToolShape
ToolShapeAttributes
ToolState
ToolStateAttributes
TraceSettings
TransformMatrix
Transparency
TrapLayer
TrapLayers
TreeManager
TreeNode
TreeNodes
URL
UserSnapPoint
Vector
View
ViewHost
ViewHosts
Views
ViewWindow
ViewWindows
Window
Windows
WMFExport
Workspace
Workspaces
WPGExport
WVLExport
Interfaces:
IColorConversionHandler
ICUIAutomation
ICUIBackgroundTask
ICUIControlData
ICUIDataSourceFactory
ICUIRunningBackgroundTask
ICUIRunningTask
ICUITask
ICUITaskManager
ICUIWarning
IImportCropHandler
IImportResampleHandler
IVGApplicationEvents
IVGAppPlugin
IVGComment
IVGCommentAnnotation
IVGCommentAuthor
IVGComments
IVGCommentTarget
IVGCommentThread
IVGCommentThreads
IVGDocumentEvents
IVGDocumentMarkup
IVGPageMarkup
Enums:
AiVersion
BmpVersion
cdrAddinFilter
cdrAlignDistributeH
cdrAlignDistributeV
cdrAlignment
cdrAlignShapesTo
cdrAlignType
cdrAntiAliasingType
cdrApplicationClass
cdrApplicationID
cdrAppStartupMode
cdrAuthorAuthentication
cdrBevelMode
cdrBevelType
cdrBlendMode
cdrCalloutEnding
cdrCalloutHaloJustify
cdrCalloutTextSource
cdrCloneLinkType
cdrColorType
cdrCommandCheckState
cdrCommentAnnotationType
cdrCommentStatus
cdrCommentType
cdrCompareCondition
cdrCompareType
cdrCompressionType
cdrConnectorType
cdrContourCornerType
cdrContourDirection
cdrContourEndCapType
cdrCopyProperties
cdrCornerType
cdrCursorShape
cdrCurveElementFlags
cdrCurveElementType
cdrDataFormatType
cdrDataType
cdrDimensionAngularUnits
cdrDimensionLinearUnits
cdrDimensionPlacement
cdrDimensionStyle
cdrDimensionSymbol
cdrDimensionType
cdrDirection
cdrDistanceMode
cdrDistortionType
cdrDistributeArea
cdrDistributeType
cdrDitherType
cdrDocLayout
cdrDropShadowType
cdrDuotoneType
cdrEdgeType
cdrEffectType
cdrEllipseType
cdrEnvelopeCopyMode
cdrEnvelopeMode
cdrExportRange
cdrExtrudeLightPosition
cdrExtrudeShading
cdrExtrudeType
cdrExtrudeVPType
cdrFeatherType
cdrFileVersion
cdrFillMode
cdrFillStyleType
cdrFillType
cdrFilter
cdrFittedOrientation
cdrFittedPlacement
cdrFittedQuadrant
cdrFittedVertPlacement
cdrFlipAxes
cdrFontCase
cdrFontLine
cdrFontPosition
cdrFontStyle
cdrFountainFillBlendType
cdrFountainFillSpreadMethod
cdrFountainFillType
cdrGridType
cdrGuideType
cdrHalftoneType
cdrImageMode
cdrImagePaletteType
cdrImageType
cdrImportMode
cdrImportTableOutline
cdrImportTextFormatting
cdrLensType
cdrLinearDimensionType
cdrLineSpacingType
cdrMergeMode
cdrNodeType
cdrObjectSnapPointType
cdrOLEType
cdrOnScreenCurvePenStyle
cdrOnScreenTextAlign
cdrOutlineDashAdjust
cdrOutlineJustification
cdrOutlineLineCaps
cdrOutlineLineJoin
cdrOutlineType
cdrOverprintState
cdrPageBackground
cdrPageOrientation
cdrPaletteID
cdrPaletteSortMethod
cdrPaletteType
cdrPaletteVersion
cdrPanoseMatchingType
cdrPatternCanvasSize
cdrPatternFillType
cdrPointType
cdrPolygonType
cdrPositionOfPointOverShape
cdrPresetPoint
cdrProjectPlane
cdrReferencePoint
cdrRenderType
cdrSegmentOffsetType
cdrSegmentType
cdrShapeChangeScope
cdrShapeEnumDirection
cdrShapeLevel
cdrShapeLinkType
cdrShapeType
cdrSpiralType
cdrSymbolType
cdrTableBorder
cdrTextAlignOrigin
cdrTextChangeCase
cdrTextCharSet
cdrTextEffect
cdrTextFrames
cdrTextIndentLevelStyle
cdrTextIndexingType
cdrTextLanguage
cdrTextPropertySet
cdrTextTabAlignment
cdrTextType
cdrTexturePropertyType
cdrThumbnailSize
cdrTileOffsetType
cdrTools
cdrTraceBackgroundMode
cdrTraceType
cdrTransparencyAppliedTo
cdrTransparencyType
cdrTreeNodeType
cdrTriState
cdrUnit
cdrURLRegion
cdrVerticalAlignment
cdrViewType
cdrWeldFlags
cdrWeldMethod
cdrWindowArrangeStyle
cdrWindowState
cdrWrapStyle
CgmCharsetMode
CgmColorMode
CgmFallbackCode
CgmFileEncoding
CgmFormat
CgmOutputPrecision
CgmTextEncoding
clrColorEngine
clrColorModel
clrColorPolicyAction
clrCompPrnCalibration
clrDeviceType
clrExportColorCorrection
clrImportColorCorrection
clrMonitorCalibration
clrRenderingIntent
cuiBarPosition
cuiBarProtection
cuiBarType
cuiDockHostOrientation
cuiDockItemType
cuiDockOperation
cuiMessageBoxFlags
cuiTaskPriority
cuiWindowState
DsfLinestyle
DxfBitmapType
DxfProjections
DxfScale
DxfUnits
DxfVersion
EpsBBoxType
EpsBitmapType
EpsColorProfile
EpsImageHeader
EpsObjectsColorType
EpsPSLevel
EpsSpotToColorType
EpsTIFFHeaderType
GifTransparency
HpglFillType
Jp2Progression
Jp2Subformat
pdfBitmapCompressionType
pdfColorMode
pdfColorProfile
pdfDisplayOnStart
pdfEditPermissions
pdfEncodingType
pdfEncryptionType
pdfEPSAs
pdfExportRange
pdfPrintPermissions
pdfSpotType
pdfTextExportMode
pdfVersion
pltOriginType
PngTransparency
PrnBitmapColorMode
PrnColorMode
PrnFileMode
PrnImageTrap
PrnObjectsColorMode
PrnPageMatchingMode
PrnPageSet
PrnPaperOrientation
PrnPaperSize
PrnPDFStartup
PrnPlaceType
PrnPlateType
PrnPostScriptLevel
PrnPrintRange
PrnRegistrationStyle
PrnTrapType
SvgBmpExportType
SvgCharacterSubsetting
SvgDrawingPrecision
SvgEncoding
SvgStyling
SvgUnits
SvgVersion
TgaVersion
WiPath
WiSpeed
WpgColorMode
WpgVersion
Structures:
CurveElement
Modules:
UICategories
  • C++/CLI
  • C++
  • C#
  • JS
  • VB
  • VBA
API Documentation > CorelDRAW > 2020.1
Document class
Represents a CorelDRAW or Corel DESIGNER document
Syntax:
class VGCore::Document;
Remarks:
The Document class represents a CorelDRAW document.
Properties:
Name Description
Active Returns True if the document is active
ActiveLayer Returns the active layer of the current document
ActivePage Returns the active page of the current document
ActivePowerClip Returns the current PowerClip object that is being edited
ActiveShape Returns the active shape
ActiveSpread Returns the active page spread in the document
ActiveWindow Returns the active window in the current document
Application Returns the application (CorelDRAW or Corel DESIGNER) to which the object belongs
ApplyToDuplicate Lets you specify whether to create duplicates of objects while transforming them. This property is used mainly for user interface compatibility and recording. Some commands may result in several duplicates and some may produce none. There is no way of referenc
CodeName Returns the name of VBA object module associated with this document
ColorContext Specifies the document color context
Components Returns a collection of document-specific components
ContentIdentifiers Returns object identifiers
CurvePrecision Returns or sets the linearization factor for curves
DataFields Returns the DataFields collection, which represents a list of all Object data fields defined within the document
Dirty Returns or specifies whether a document has been modified since it was last saved
DrawingOriginX Returns or specifies the horizontal drawing origin for the center of coordinates relative to the center of the page. By default, the center of coordinates is set to the lower-left corner of a page.
DrawingOriginY Returns or specifies the vertical drawing origin for the center of coordinates relative to the center of the page. By default, the center of coordinates is set to the lower-left corner of a page.
EditAcrossLayers Returns or sets the ability to edit objects that are not on the active layer
FacingPages Specifies whether facing pages should be displayed for the current document layout
FileName Returns the file name of a document if it has been saved
FilePath Returns the location of the document
FirstPageOnRightSide Specifies whether the first page in facing pages starts on the right side of the spread
FullFileName Returns the path and file name of an instance of a document
Grid Returns the grid settings for the document
HatchLibraries Returns a collection of available hatch fill libraries
Index Returns the index of the document in the Documents collection
IsCurrentVersion Returns True if the document is saved in the current file version format
IsTemporary Returns True if this document is a temporary document with no document windows
Layout Specifies the document layout type
Markup Markup associated with this document
MasterPage Returns the document master page
Math Gives access to the application's math functions
Metadata Returns the individual metadata items within a document
Name Returns or specifies the name of the VBA object for the current document
Pages Returns the Pages collection, which represents all pages in the document
Palette Returns the document palette associated with this document
Parent Returns a read-only value that is associated with the properties, methods, and controls of an object's parent in the CorelDRAW and Corel DESIGNER hierarchy of objects. A parent object acts as a container for child objects. For example, a form (as a container)
PDFSettings Returns the PDF settings for the specified document
PreserveSelection Returns or specifies whether the current selection should always be preserved
PrintSettings Returns a reference to the Print Settings configured for the document
Properties Returns any custom properties that were saved with the document
ReferencePoint Returns or specifies the reference point for positioning every object in the document
Resolution Returns or sets the document pixel resolution in DPI
ResolutionX Returns or sets the document horizontal pixel resolution in DPI
ResolutionY Returns or sets the document vertical pixel resolution in DPI
Rulers Returns the Rulers collection for a document, letting you change the properties of the rulers in the document window
SelectableShapes Returns a collection of all the selectable shapes visible in the current view
SelectionInfo Returns the SelectionInfo object
SelectionRange Returns a collection of shapes within the selection
ShapeEnumDirection Returns or sets the order in which shapes in a collection are enumerated
SourceFileVersion Returns the document file version
SourceFormat Returns the document format
SourcePlatformVersion Returns the internal document version
Spreads Returns the collection of document page spreads
StyleSheet Returns a list of styles or stylesets and their properties within the document as a stylesheet
SymbolLibrary Returns the local symbol library of the document
TextFormatter Returns or sets the text formatter for the document
Title Returns the name of a document that has not yet been saved
TreeManager Returns the document tree manager
TreeRoot Returns the top-level document tree node
Unit Returns or specifies the unit of measurement used in the document for the position, size, and dimensions of objects
Views Returns a collection of views for the document
Windows Returns the Windows collection, which represents all document windows belonging to the current document
WorldScale Returns or sets the Drawing Scale
Methods:
Name Description
Activate Opens a document in the main application window in CorelDRAW or Corel DESIGNER, if the window is not currently open, and makes the document active
AddColorsToDocPalette Adds all the colors in the document or selection to the document color palette
AddPages Appends blank pages to the document and returns the first page added
AddPagesEx Appends pages to a document at a specified width and height
AddToSelection Adds the specified list of shapes to the current selection
AdviseEvents Advise document events
AssignColorContext Replaces the existing document color context with the new one. Document colors preserve their values and may change their appearance.
BeginCommandGroup Starts to list a group of commands, which can later be undone in a single step
ClearSelection Deselects any selected object
ClearUndoList Clears the Undo history list for the document
Clone Creates a copy of the document in memory without creating a document window
Close Closes the document
ConvertToColorContext Replaces the existing document color context with the new one. Document colors preserve their appearances and may change their values.
CreateArrowHead Creates a new outline arrowhead by using the given curve as the arrowhead shape
CreateArrowHead2 Creates a new outline arrowhead by using the given curve as the arrowhead shape, and provides its name
CreateArrowHeadEx Creates a new outline arrowhead by using the given curve as the arrowhead shape and specifying advanced arrowhead creation options
CreateArrowHeadEx2 Creates a new outline arrowhead by using the given curve as the arrowhead shape and specifying advanced arrowhead creation options, and provides its name
CreateArrowHeadOptions Creates a new outline arrowhead options object
CreateBSpline Creates an instance of a b-spline
CreateColorStyles Creates color styles or color harmonies from objects in the document or selection
CreateCurve Creates an instance of a Curve object bound to the specified document
CreateCurveFitToPoints Creates a curve fitted to an array of points
CreateCurveFitToPointsAndCusps Creates a curve fitted to an array of points, using indices of points to determine cusps
CreateCurveFromArray Creates an instance of a Curve object bound to the document by using the node information specified
CreateFill Creates a virtual fill object unattached from any shape
CreateFreeSnapPoint Creates a snap point at the given location in the document
CreateImage Creates a new pixel buffer for bitmap image
CreateOutline Creates a virtual outline object unattached from any shape
CreateSelection Creates a selection from a list of shapes
CreateShapeRangeFromArray Creates a ShapeRange object containing the specified shapes
CreateUniformFill Creates a single color fill object
CreateView Creates an instance of a custom view area, storing the page, zoom percentage and location. This custom view can be invoked later.
CustomCommand Executes a custom command on the given document
DeletePages Deletes a number of pages at a time
Duplicate Creates a new copy of the document
EndCommandGroup Ends the list of commands that can be undone in one step
Export Exports a document to a supported non-native file format
ExportBitmap Exports a document to a supported raster file format
ExportEx Exports a document to a supported non-native file format and returns an instance of ExportFilter
FromUnits Converts a given value from the current document units into the given units
GetUserArea Allows a user to specify a rectangular area by dragging. Returns top left and bottom right x,y coordinatesa and information about the state of the modifier keys, CTRL, ALT and SHIFT keys at the moment of click
GetUserClick Allows a user to click in the document, and returns the x,y coordinate and information about the state of the modifier CTRL, ALT and SHIFT keys at the time of the click
InsertPages Inserts blank pages in a document and returns the first page added.You can specify that the pages are inserted before the active page.
InsertPagesEx Inserts pages of a specified size in a document
LoadStyleSheet Loads styles from a Styles template file into the current document
LogCreateShape Logs a virtual shape creation transaction so it can be undone by the user
LogCreateShapeRange Logs shape creation transaction for a number of virtual shapes so it can be undone by the user
PrintColorProof Prints out a color proof by using the specified proofing settings
PrintOut Opens the Print dialog box
PublishToPDF Publishes the specified document to PDF
Redo Reverses the last undo operation
RemoveFromSelection Removes the specified list of shapes from the current selection
Repeat Repeats the last operation
ResetSettings Resets a set of document settings that can be saved internally, including Unit, Drawing Origin, Curve Precision, Reference Point, PreserveSelection, ShapeEnumdirection, and Apply To Duplicate
ResolveAllBitmapsLinks Embeds all externally linked bitmaps
RestoreSettings Restores a specific internally saved document setting
Revert Reverts all changes made to the document since the last save
SampleColorAtPoint Samples a color at a point
SampleColorInArea Samples the average colors within an area
Save Saves the document
SaveAs Lets you save the document to a different file and specify additional options through the StructSaveAsOptions object
SaveAsCopy Saves the document to a new file but doesn't keep the link to it
SaveSettings Saves document settings that can be recalled later, including Unit, Drawing Origin, curve Precision, Reference Point, PreserveSelection, ShapeEnumdirection, and Apply To Duplicate
SaveStyleSheet Saves styles in the current document as a template
SaveStyleSheetAsDefault Saves styles in the current document as a default template to be used with all new documents
Selection Returns a shape with a cdrSelectionShape type
SetLayout Sets a different layout type for the document
ShowAllHiddenObjects Shows all hidden objects in the document
ToUnits Converts a given value from specified units into the current document units
UnadviseEvents Unadvise document events
Undo Reverses the last operation
Events:
Name Description
AfterExport Invoked after exporting the document
AfterPrint Invoked after printing the document
AfterSave Invoked after saving the document
BeforeExport Invoked before exporting the document
BeforePrint Invoked before printing the document
BeforeSave Invoked before saving the document
Close Invoked when the document is closed
LayerActivate Invoked when a layer is activated
LayerChange Invoked when a layer is changed
LayerCreate Invoked when a layer is created
LayerDelete Invoked when a layer is deleted
Open Invoked when the document is opened
PageActivate Invoked when a page is activated
PageChange Invoked when a page is changed
PageCreate Invoked when a page is created
PageDelete Invoked when a page is deleted
QueryClose Invoked when the user responds to a request to close the document
QueryExport Invoked when the user responds to a request to export the document
QueryPrint Invoked when the user responds to a request to print the document
QuerySave Invoked when the user responds to a request to save the document
SelectionChange Invoked when a selection is changed
ShapeChange Invoked when a shape is changed
ShapeCreate Invoked when a shape is created
ShapeDelete Invoked when a shape is deleted
ShapeDistort Invoked when a shape is distorted
ShapeMove Invoked when a shape is moved
ShapeTransform Invoked when a shape is transformed
Version Information:
CorelDRAW: X7.4, X7, X7.6, X8, 2017, 2018, 2019, 2019.2, 2020, 2021, 2020.1, 2021.5, 2022-v24, 2022-v24.1, 2022-v24.2, 2023-v24.3
Corel DESIGNER: X7, 2017.1, 20.1, 2019.2, 2020.1, 2021.5, 2022-v24, 2022-v24.1, 2022-v24.2, 2023-v24.3

© Corel Corporation. All rights reserved. The content herein is in the form of a personal web log ("Blog") or forum posting. As such, the views expressed in this site are those of the participants and do not necessarily reflect the views of Corel Corporation, or its affiliates and their respective officers, directors, employees and agents. Terms of Use / Privacy​ ​/ ​Cookies / Terms and Conditions / User Guidelines.