Hide Table of Contents
SetArrowHeadStyleAtIndex Method (IAnnotation)

Sets the arrow head style of a specific leader on this annotation.

.NET Syntax

Visual Basic (Declaration) 
Function SetArrowHeadStyleAtIndex( _
   ByVal Index As System.Integer, _
   ByVal ArrowHeadStyle As System.Integer _
) As System.Integer
Visual Basic (Usage) 
Dim instance As IAnnotation
Dim Index As System.Integer
Dim ArrowHeadStyle As System.Integer
Dim value As System.Integer
 
value = instance.SetArrowHeadStyleAtIndex(Index, ArrowHeadStyle)
C# 
System.int SetArrowHeadStyleAtIndex( 
   System.int Index,
   System.int ArrowHeadStyle
)
C++/CLI 
System.int SetArrowHeadStyleAtIndex( 
&   System.int Index,
&   System.int ArrowHeadStyle
) 

Parameters

Index
0-based index of leader within this annotation (see Remarks)
ArrowHeadStyle
Arrowhead style as defined in swArrowStyle_e

Return Value

Return status (see Remarks)

Remarks

A valid index value is greater than or equal to 0, but less than the number of leaders on this annotation. Use IAnnotation::GetArrowHeadCount to find out how many leaders are on this annotation. An index value of -1 is also valid, and indicates that this arrowhead style should be applied to all leaders on this annotation. If the index value is
invalid, SOLIDWORKS returns a retval of -2.

If smart arrowhead style is enabled on this annotation, then this method cannot change
the arrowhead style of individual leaders, and retval is -3. Use IAnnotation::GetSmartArrowHeadStyle to determine if this flag is enabled or disabled.

The return status of this method can have the following values:

If value equals... Then the arrowhead style was...

0

Successfully set 

-1

Not set because of an unknown error

-2

Not set because of an invalid index value

-3

Not set because of smart arrowhead styles being enabled

-4

Not set because of an invalid arrowhead style value

If leader display is enabled, then this method changes the visible model. To see those
changes, use IModelDoc2::GraphicsRedraw2 to reddraw the graphics window.


Use IAnnotation::GetArrowHeadStyleAtIndex to get the arrow head style of a specific leader.

 

 

See Also



Provide feedback on this topic

SOLIDWORKS welcomes your feedback concerning the presentation, accuracy, and thoroughness of the documentation. Use the form below to send your comments and suggestions about this topic directly to our documentation team. The documentation team cannot answer technical support questions. Click here for information about technical support.

* Required

 
*Email:  
Subject:   Feedback on Help Topics
Page:   SetArrowHeadStyleAtIndex Method (IAnnotation)
*Comment:  
*   I acknowledge I have read and I hereby accept the privacy policy under which my Personal Data will be used by Dassault Systèmes

Print Topic

Select the scope of content to print:

x

We have detected you are using a browser version older than Internet Explorer 7. For optimized display, we suggest upgrading your browser to Internet Explorer 7 or newer.

 Never show this message again
x

Web Help Content Version: API Help (English only) 2018 SP05

To disable Web help from within SOLIDWORKS and use local help instead, click Help > Use SOLIDWORKS Web Help.

To report problems encountered with the Web help interface and search, contact your local support representative. To provide feedback on individual help topics, use the “Feedback on this topic” link on the individual topic page.