API Documentation > CorelDRAW > 2025-v26
IVGLayer interface
The main interface for Layer class
Syntax:
Interface IVGLayer
Properties:
Name Description
Above Returns the layer above the referenced layer
AbsoluteIndex Returns the index of the referenced layer for the entire document, including Master Layers
AllCollaborativeTextShapes
Application Returns the application to which the object belongs
Below Returns the layer below the referenced layer
Color Gets or sets the layer override color
Editable Returns or sets the layer's editability state
Index Returns the index of the referenced layer in the Layers collection for the Page only
IsDesktopLayer Returns True if the given layer is the desktop layer
IsGridLayer Returns True if the given layer is the grid layer
IsGuidesLayer Returns True if the given layer is the guideline layer
IsSpecialLayer Returns True if the given layer is a special layer (guideline, desktop, or grid)
Master Returns or sets the layer's Master state
MasterLayer Returns the corresponding layer from the master page
MasterProperties Returns a Properties collecton, which lets you specify and manipulate custom data that is associated to the Master Layer
Name Returns or sets the layer name
OverrideColor Returns or sets the layer override color's enabled state
Page Returns the page that this layer resides on
Parent Returns the parent object of the layer
Printable Returns or sets the layer's printability state
Properties Returns a Properties collection, which lets you specify and manipulate custom data that is associated with a given layer
SelectableShapes Returns a collection of all the selectable shapes on the layer
Shapes Returns a collection of shapes residing on the layer
TreeNode Returns the tree node object corresponding to the given layer
Visible Returns or sets the layer's visibility state
Methods:
Name Description
Activate Sets an instance of a layer to be active
CreateAngularDimension Creates an angular dimension
CreateArtisticText Creates artistic text on a layer
CreateArtisticTextWide Creates Unicode artistic text
CreateBitmap Creates a bitmap by specifying coordinates of two opposite corners of its bounding box.
CreateBitmap2 Creates a bitmap by specifying its bottom corner, width, and height.
CreateBitmapRect Creates a bitmap by using the rectangular area specified.
CreateBSpline Creates a b-spline
CreateConnector Creates a connector on a layer
CreateConnectorEx Creates a connector of a given type
CreateCurve Creates a curve shape from a specified Curve object
CreateCurveSegment Creates a curve segment (curve object) on a layer
CreateCurveSegment2 Creates a curve segment by using control point coordinates
CreateCustomShape Creates a custom shape
CreateEllipse Creates an ellipse by specifying coordinates
CreateEllipse2 Creates an ellipse by specifying its center and radius
CreateEllipseRect Creates an ellipse shape by using the rectangular area specified
CreateFreeConnector Creates a Connector object not attached or linked to a shape
CreateGridBoxes Creates a group of rectangles representing a custom grid on a layer
CreateGuide Creates a guide by using two points
CreateGuideAngle Creates a guide by using one point and an angle
CreateLinearDimension Creates a linear dimension
CreateLineSegment Creates a line segment (curve object) on a layer
CreateOLEObject Creates a new OLE object
CreateOLEObjectFromFile Creates a new OLE object from file
CreateParagraphText Creates paragraph text on a layer
CreateParagraphTextWide Creates Unicode paragraph text
CreatePolygon Creates a polygon by specifying coordinates
CreatePolygon2 Creates a symmetrical polygon by using a center point and radius
CreateRectangle Creates a rectangle by specifying coordinates
CreateRectangle2 Creates a rectangle by specifying its bottom corner, width, and height
CreateRectangleRect Creates a rectangle shape by using the rectangular area specified
CreateRightAngleConnector Creates a right-angle connector
CreateSpiral Creates a spiral on a layer
CreateSymbol Creates an instance of a symbol
CreateToolShape Creates an addon tool shape
CustomCommand Executes a layer-specific command provided by a component
Delete Deletes the layer
FindShape Finds a single shape by its name, type or Static ID
FindShapes Returns a collection of shapes (ShapeRange) based on search criteria
Import Imports a supported non-native file from disk onto a layer
ImportEx Imports a supported non-native file format onto a layer and returns an ImportFilter object
MoveAbove Places a layer above another layer
MoveBelow Places a layer below another layer
Paste Pastes the contents of the Clipboard
PasteEx Pastes object(s) from the Clipboard onto the layer and returns the range of objects pasted; allows to specify additional options
PasteSpecial Pastes the clipboard contents in a specified format