Eigenschaft · Callout
TextFormat-Eigenschaft (Callout)
Liest oder setzt das Textformat des Callouts, etwa Schriftart, Schrifthöhe und Schriftschnitt.
Syntax
Property TextFormat As TextFormatSet swTextFormat = swCallout.TextFormatWert
Das Textformat (TextFormat).
Beispiel
' swCallout ist ein Callout, etwa aus ModelDocExtension.CreateCallout.
Dim swTextFormat As SldWorks.TextFormat
Set swTextFormat = swCallout.TextFormat
Debug.Print swTextFormat.TypeFaceName & ", " & swTextFormat.CharHeightInPts & " pt, fett: " & swTextFormat.BoldBemerkungen
Das Hilfebeispiel „Create a Callout Independent of a Selection“ liest das Textformat, nachdem es den Callout angezeigt hat, und gibt alle Eigenschaften aus. Wie du ein geändertes Textformat zuweist, zeigt die Hilfe nicht.
CharHeightInPts liefert beim Textformat eines Callouts keinen sinnvollen Wert, etwa -3894.
Siehe auch
Verfügbarkeit
SOLIDWORKS 2014
Englisches Original: ICallout::TextFormat in der SOLIDWORKS API-Hilfe ↗ (dort mit dem .NET-Namen)
Fragen zu diesem Befehl oder ein Befehl fehlt? Frag im Discord.