Что нового в объектной модели CorelDRAW

Отличия VGCore X6 (16.0) от VGCore X5

Class CommandBarControls

Methods:
  • Function AddCustomControl (ByVal ClassName As String, [ByVal AssemblyPath As String = ""], [ByVal Index As Long = 0], [ByVal Temporary As Boolean = False]) As CommandBarControl
  • Function AddToggleButton (ByVal Guid As String, [ByVal Index As Long = 0], [ByVal Temporary As Boolean = False]) As CommandBarControl
  • Sub Remove (ByVal Index As Long)

Enum cdrCompressionType

Constants:
  • cdrCompressionZIP As Long=7

Enum cdrFileVersion

Constants:
  • cdrVersion16 As Long=16

Enum cdrFilter

Constants:
  • cdrCMX64 As Long=1811
  • cdrPUB As Long=1349

Отличия VGCore X6 (16.1) от VGCore X6 (16.0)

Class IVGApplication

Methods:
  • Function GetSupportedOpenTypeFeatures ()() As String

Class IVGDocument

Properties:
  • Property StyleSheet As IVGStyleSheet
  • Property TextFormatter As Long

Class IVGShape

Properties:
  • Property Style As IVGStyle
Methods:
  • Sub AlignAndDistribute (ByVal MethodH As cdrAlignDistributeH, ByVal MethodV As cdrAlignDistributeV, [ByVal AlignTo As cdrAlignShapesTo = cdrAlignShapesToLastSelected (0)], [ByVal DistributeArea As cdrDistributeArea = cdrDistributeToSelection (0)], [ByVal UseOutline As Boolean = False], [ByVal TextAlignOrigin As cdrTextAlignOrigin = cdrTextAlignBoundingBox (2)], [ByVal PointX As Double = 0], [ByVal PointY As Double = 0], [ByVal DistributeRect As IVGRect = Nothing])

Class IVGShapeRange

Methods:
  • Sub AlignAndDistribute (ByVal MethodH As cdrAlignDistributeH, ByVal MethodV As cdrAlignDistributeV, [ByVal AlignTo As cdrAlignShapesTo = cdrAlignShapesToLastSelected (0)], [ByVal DistributeArea As cdrDistributeArea = cdrDistributeToSelection (0)], [ByVal UseOutline As Boolean = False], [ByVal TextAlignOrigin As cdrTextAlignOrigin = cdrTextAlignBoundingBox (2)], [ByVal PointX As Double = 0], [ByVal PointY As Double = 0], [ByVal DistributeRect As IVGRect = Nothing])

Class IVGStyle

Properties:
  • Property BasedOn As IVGStyle
  • Property CategoryName As String
  • Property Character As IVGStyleCharacter
  • Property DerivedStyles As IVGStyles
  • Property DisplayCategoryName As String
  • Property DisplayName As String
  • Property Fill As IVGStyleFill
  • Property Frame As IVGStyleFrame
  • Property IsObjectDefaults As Boolean
  • Property IsStyleSet As Boolean
  • Property Name As String
  • Property Outline As IVGStyleOutline
  • Property Paragraph As IVGStyleParagraph
Methods:
  • Function ClearProperty (ByVal Name As String) As Boolean
  • Function Delete () As Boolean
  • Function GetAllPropertyNames ()() As String
  • Function GetOverridePropertyNames ()() As String
  • Function GetProperty (ByVal Name As String) As Variant
  • Function GetPropertyAsString (ByVal Name As String) As String
  • Function IsPropertyInherited (ByVal Name As String) As Boolean
  • Function Rename (ByVal NewName As String) As Boolean
  • Function SetBasedOn (ByVal NewParent As String) As Boolean
  • Sub SetProperty (ByVal Name As String, ByVal Value As Variant)
  • Function SetPropertyAsString (ByVal Name As String, ByVal Value As String) As Boolean
  • Function StringAssign (ByVal StyleString As String) As Boolean
  • Function ToString () As String

Class IVGStyleCharacter

Properties:
  • Property Style As IVGStyle

Class IVGStyleFill

Properties:
  • Property EdgePad As Long
  • Property FlipColors As Boolean
  • Property FountainBlendType As cdrFountainFillBlendType
  • Property FountainCenterOffsetX As Long
  • Property FountainCenterOffsetY As Long
  • Property FountainFillType As cdrFountainFillType
  • Property FountainSteps As Long
  • Property MidPoint As Long
  • Property MirrorFill As Boolean
  • Property Overprint As Boolean
  • Property PostScriptName As String
  • Property PrimaryColor As IVGColor
  • Property RotationAngle As Double
  • Property SecondaryColor As IVGColor
  • Property SkewAngle As Double
  • Property Style As IVGStyle
  • Property TileHeight As Double
  • Property TileOffset As Long
  • Property TileOffsetType As cdrTileOffsetType
  • Property TileOriginX As Double
  • Property TileOriginY As Double
  • Property TileWidth As Double
  • Property TransformWithShape As Boolean
  • Property Type As cdrFillStyleType
  • Property WindingFill As Boolean

Class IVGStyleFrame

Properties:
  • Property Style As IVGStyle

Class IVGStyleOutline

Properties:
  • Property BehindFill As Boolean
  • Property Color As IVGColor
  • Property Justification As cdrOutlineJustification
  • Property LineCaps As cdrOutlineLineCaps
  • Property LineJoin As cdrOutlineLineJoin
  • Property MiterLimit As Double
  • Property NibAngle As Double
  • Property NibStretch As Long
  • Property OverlapArrow As Boolean
  • Property Overprint As Boolean
  • Property ScaleWithShape As Boolean
  • Property ShareArrow As Boolean
  • Property Style As IVGStyle
  • Property Type As cdrOutlineType
  • Property WidelineWidth As Double
  • Property Width As Double

Class IVGStyleParagraph

Properties:
  • Property Style As IVGStyle

Class IVGStyles

Properties:
  • Property Count As Long
  • Property First As IVGStyle
  • Property Item (ByVal Index As Long) As IVGStyle
  • Property Last As IVGStyle
Methods:
  • Function Find (ByVal Name As String) As IVGStyle

Class IVGStyleSheet

Properties:
  • Property AllStyles As IVGStyles
  • Property AllStyleSets As IVGStyles
  • Property ObjectDefaults As IVGStyles
  • Property Styles As IVGStyles
  • Property StyleSets As IVGStyles
Methods:
  • Function CreateStyle (ByVal Category As String, [ByVal BasedOn As String], [ByVal Name As String], [ByVal ReplaceExisting As Boolean = False]) As IVGStyle
  • Function CreateStyleFromShape (ByVal Shape As IVGShape, ByVal Category As String, [ByVal Name As String], [ByVal ReplaceExisting As Boolean = False]) As IVGStyles
  • Function CreateStyleFromShapeRange (ByVal ShapeRange As IVGShapeRange, ByVal Category As String, [ByVal Name As String], [ByVal ReplaceExisting As Boolean = False]) As IVGStyles
  • Function CreateStyleFromTextRange (ByVal TextRange As IVGTextRange, ByVal Category As String, [ByVal Name As String], [ByVal ReplaceExisting As Boolean = False]) As IVGStyles
  • Function CreateStyleSet ([ByVal BasedOn As String], [ByVal Name As String], [ByVal ReplaceExisting As Boolean = False]) As IVGStyle
  • Function CreateStyleSetFromShape (ByVal Shape As IVGShape, [ByVal Name As String], [ByVal ReplaceExisting As Boolean = False]) As IVGStyles
  • Function CreateStyleSetFromShapeRange (ByVal ShapeRange As IVGShapeRange, [ByVal Name As String], [ByVal ReplaceExisting As Boolean = False]) As IVGStyles
  • Function CreateStyleSetFromTextRange (ByVal TextRange As IVGTextRange, [ByVal Name As String], [ByVal ReplaceExisting As Boolean = False]) As IVGStyles
  • Function Export (ByVal FileName As String, [ByVal Styles As Boolean = False], [ByVal StyleSets As Boolean = False], [ByVal ObjectDefaults As Boolean = False], [ByVal ColorStyles As Boolean = False]) As Boolean
  • Function FindStyle (ByVal Name As String) As IVGStyle
  • Function Import (ByVal FileName As String, [ByVal MergeStyles As Boolean = False], [ByVal Styles As Boolean = False], [ByVal StyleSets As Boolean = False], [ByVal ObjectDefaults As Boolean = False], [ByVal ColorStyles As Boolean = False]) As Boolean

Class IVGTextRange

Properties:
  • Property ObjectStyle As IVGStyle
  • Property TextFormatter As Long
Methods:
  • Sub ApplyStyle (ByVal StyleName As String)
  • Function GetOpenTypeFeature (ByVal Feature As String) As Long
  • Sub SetOpenTypeFeature (ByVal Feature As String, ByVal State As Long)

Enum cdrAlignDistributeH

Constants:
  • cdrAlignDistributeHNone As Long=0
  • cdrAlignDistributeHAlignRight As Long=1
  • cdrAlignDistributeHAlignLeft As Long=2
  • cdrAlignDistributeHAlignCenter As Long=3
  • cdrAlignDistributeHDistributeRight As Long=4
  • cdrAlignDistributeHDistributeLeft As Long=5
  • cdrAlignDistributeHDistributeCenter As Long=6
  • cdrAlignDistributeHDistributeSpacing As Long=7

Enum cdrAlignDistributeV

Constants:
  • cdrAlignDistributeVNone As Long=0
  • cdrAlignDistributeVAlignTop As Long=1
  • cdrAlignDistributeVAlignBottom As Long=2
  • cdrAlignDistributeVAlignCenter As Long=3
  • cdrAlignDistributeVDistributeTop As Long=4
  • cdrAlignDistributeVDistributeBottom As Long=5
  • cdrAlignDistributeVDistributeCenter As Long=6
  • cdrAlignDistributeVDistributeSpacing As Long=7

Enum cdrAlignShapesTo

Constants:
  • cdrAlignShapesToLastSelected As Long=0
  • cdrAlignShapesToEdgeOfPage As Long=1
  • cdrAlignShapesToCenterOfPage As Long=2
  • cdrAlignShapesToGrid As Long=3
  • cdrAlignShapesToPoint As Long=4

Enum cdrDistributeArea

Constants:
  • cdrDistributeToSelection As Long=0
  • cdrDistributeToPage As Long=1
  • cdrDistributeToRect As Long=2

Enum cdrFillStyleType

Constants:
  • cdrNoFillStyle As Long=0
  • cdrUniformFillStyle As Long=1
  • cdrFountainFillStyle As Long=2
  • cdrPostscriptFillStyle As Long=3
  • cdrTwoColorPatternFillStyle As Long=4
  • cdrBitmapPatternFillStyle As Long=6
  • cdrTextureFillStyle As Long=8
  • cdrFullColorPatternFillStyle As Long=9
  • cdrHatchFillStyle As Long=10

Enum cdrOutlineJustification

Constants:
  • cdrOutlineJustificationMiddle As Long=0
  • cdrOutlineJustificationInside As Long=1
  • cdrOutlineJustificationOutside As Long=2