Previous Document Next Document

Object Model Reference : Classes : S : SubPath : Methods : SubPath.Delete


SubPath.Delete

Sub Delete()

Description

Member of SubPath

The Delete method removes a subpath from a curve.

 
Removing the last subpath from a curve destroys the entire curve.
VBA example

The following VBA example creates a large letter “B” on the page, converts it to curves, and then deletes its inner “holes,” leaving only the outside contour.

Sub Test()
 Dim s As Shape
 Dim sgr As SegmentRange
 Set s = ActiveLayer.CreateArtisticText(0, 0, "B")
 With s.Text.FontProperties
  .Name = "Arial Black"
  .Size = 200
 End With
 s.ConvertToCurves
 s.Curve.Subpaths(3).Delete
 s.Curve.Subpaths(2).Delete
End Sub

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.