SolidWorksMakroprogrammierung

Methode · TableAnnotation

GetCellTextFormat-Methode (TableAnnotation)

Liefert das Textformat einer Zelle einer Tabelle.

Syntax

Function GetCellTextFormat( _
   ByVal Row As Long, _
   ByVal Column As Long _
) As TextFormat
Set swTextFormat = swTable.GetCellTextFormat(Row, Column)

Parameter

RowLongByVal
Zeile der Zelle, beginnend bei 0.
ColumnLongByVal
Spalte der Zelle, beginnend bei 0.

Rückgabewert

Das Textformat (TextFormat) der Zelle.

Beispiel

' swTable ist eine Tabelle (TableAnnotation), etwa aus View.GetFirstTableAnnotation2.
Dim swTextFormat As SldWorks.TextFormat
Set swTextFormat = swTable.GetCellTextFormat(0, 0)
Debug.Print swTextFormat.TypeFaceName & ", " & swTextFormat.CharHeight * 1000 & " mm" & _
    IIf(swTextFormat.Bold, ", fett", "")

Bemerkungen

Ob die Zelle das Format aus dem Dokument benutzt, liefert TableAnnotation.GetCellUseDocTextFormat. Das Format der ganzen Tabelle liefert TableAnnotation.GetTextFormat.

Siehe auch

Verfügbarkeit

SOLIDWORKS 2004

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

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