Obsolete for documents created in SOLIDWORKS 2016 and later. Sets the text justification for the specified text item in a compound note.
.NET Syntax
Visual Basic (Declaration) | |
---|
Sub SetTextJustificationAtIndex( _
ByVal Index As System.Integer, _
ByVal Justification As System.Integer _
) |
Visual Basic (Usage) | |
---|
Dim instance As INote
Dim Index As System.Integer
Dim Justification As System.Integer
instance.SetTextJustificationAtIndex(Index, Justification) |
C++/CLI | |
---|
void SetTextJustificationAtIndex(
& System.int Index,
& System.int Justification
) |
Parameters
- Index
1-based index value for the text within the note
- Justification
Text justification as defined in swTextJustification_e
Return Value
Because a compound note can have multiple pieces of text, many of the compound note methods require you to specify the index value of the desired text. For example, the first piece of text added to the compound note using INote::AddText has an index number of 1, the second text added has an index number of 2, and so on.
If you use this method on a standard note (not a compound note), then the index value must be set to 1.
To see the changes made to the text, the graphics window must be redrawn. See IModelDoc2::GraphicsRedraw2.
See Also