SolidWorksMakroprogrammierung

Methode · Note

SetTextJustification-Methode (Note)

Setzt die waagrechte Ausrichtung des Texts einer Notiz: links, zentriert oder rechts.

Syntax

Sub SetTextJustification( _
   ByVal Justification As Long _
)
swNote.SetTextJustification Justification

Parameter

JustificationLongByVal
Ausrichtung aus swTextJustification_e: swTextJustificationLeft, swTextJustificationCenter oder swTextJustificationRight.

Beispiel

' swModel ist das Dokument (ModelDoc2), swNote eine Notiz (Note) darin.
swNote.SetTextJustification swTextJustificationCenter
swModel.ActiveView.GraphicsRedraw Empty

Bemerkungen

Der Befehl gilt für eine einfache („standard“) Notiz. Damit die Änderung zu sehen ist, zeichnest du neu. Die Hilfe nennt das veraltete ModelDoc2.GraphicsRedraw2, das Beispiel nimmt ModelView.GraphicsRedraw.

Siehe auch

Verfügbarkeit

In allen aktuellen Versionen vorhanden. Seit wann es den Befehl gibt, nennt die Hilfe nicht.

Englisches Original: INote::SetTextJustification in der SOLIDWORKS API-Hilfe ↗ (dort mit dem .NET-Namen)

Fragen zu diesem Befehl oder ein Befehl fehlt? Frag im Discord.