Previous Document Next Document

Object Model Reference : Classes : S : Shape : Methods : Shape.BreakApart


Shape.BreakApart

Sub BreakApart()

Description

Member of Shape

The BreakApart method breaks curves into subpaths, or text objects into words or characters.

VBA example

The following VBA example creates the letter “O” and converts it to a curve. It breaks the two subpaths into separate objects. The inner path is then moved upwards by 0.2", and the two paths are combined into a single curve shape.

Sub Test()
 Dim s As Shape, sr As ShapeRange
 Set s = ActiveLayer.CreateArtisticText(0, 0, "O")
 With s.Text.FontProperties
  .Name = "Arial Black"
  .Size = 48
 End With
 s.ConvertToCurves
 s.BreakApart
 Set sr = ActiveSelectionRange
 sr(1).Move 0, 0.2
 sr.Combine
End Sub

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.