Methode · TableAnnotation
GetTextFormat-Methode (TableAnnotation)
Liefert das Textformat einer ganzen Tabelle.
Syntax
Function GetTextFormat() As TextFormatSet swTextFormat = swTable.GetTextFormatRückgabewert
Das Textformat (TextFormat) der Tabelle.
Beispiel
' swTable ist eine Tabelle (TableAnnotation), etwa aus View.GetFirstTableAnnotation2.
Dim swTextFormat As SldWorks.TextFormat
Set swTextFormat = swTable.GetTextFormat
Debug.Print "Schrift: " & swTextFormat.TypeFaceName & ", " & swTextFormat.CharHeight * 1000 & " mm"Bemerkungen
Ob die Tabelle das Format aus dem Dokument benutzt, liefert TableAnnotation.GetUseDocTextFormat. Für einzelne Zellen gibt es TableAnnotation.GetCellTextFormat.
Siehe auch
Verfügbarkeit
SOLIDWORKS 2004
Englisches Original: ITableAnnotation::GetTextFormat in der SOLIDWORKS API-Hilfe ↗ (dort mit dem .NET-Namen)
Fragen zu diesem Befehl oder ein Befehl fehlt? Frag im Discord.