Previous Document Next Document

Object Model Reference : Classes : S : Segment : Methods : Segment.GetAbsoluteOffset


Segment.GetAbsoluteOffset

Function GetAbsoluteOffset(ParamOffset As Double) As Double

Description

Member of Segment

The GetAbsoluteOffset method returns the distance of a specified point from the beginning of a segment, thus effectively converting the parametric offset to an absolute offset value.

Parameter
Description
ParamOffset
Specifies the parametric offset value of the segment

VBA example

The following VBA example displays the distance of a point, with a parametric offset 0.5, from the beginning of the first segment of the active curve.

Sub Test()
 MsgBox ActiveShape.Curve.Segments(1).GetAbsoluteOffset(0.5)
End Sub

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.