Methode · ProjectionArrow
GetTextFormat-Methode (ProjectionArrow)
Liefert das Textformat der Beschriftung des Ansichtspfeils.
Syntax
Function GetTextFormat() As ObjectSet swTextFormat = swPfeil.GetTextFormatRückgabewert
Das Textformat (TextFormat).
Beispiel
' swPfeil ist ein Ansichtspfeil (ProjectionArrow), etwa aus View.GetProjectionArrow.
Dim swTextFormat As SldWorks.TextFormat
Set swTextFormat = swPfeil.GetTextFormat
Debug.Print swTextFormat.TypeFaceName & ", " & swTextFormat.CharHeight * 1000# & " mm"Bemerkungen
Das Hilfebeispiel „Get Arrow in Projected View“ gibt damit alle Angaben des Textformats aus, etwa Schriftart, Zeichenhöhe, fett und kursiv. Ob die Beschriftung das Format aus dem Dokument nimmt, liefert ProjectionArrow.GetUseDocTextFormat.
Einen Befehl, der das Textformat setzt, hat ProjectionArrow nicht. Ob Änderungen am gelieferten TextFormat auf den Pfeil wirken, sagt die Hilfe nicht.
Siehe auch
Verfügbarkeit
SOLIDWORKS 2001
Englisches Original: IProjectionArrow::GetTextFormat in der SOLIDWORKS API-Hilfe ↗ (dort mit dem .NET-Namen)
Fragen zu diesem Befehl oder ein Befehl fehlt? Frag im Discord.