SolidWorksMakroprogrammierung

Eigenschaft · TableAnnotation

CellTextHorizontalJustification-Eigenschaft (TableAnnotation)

Liest oder setzt die waagrechte Ausrichtung des Texts in einer Zelle einer Tabelle.

Syntax

Property CellTextHorizontalJustification( _
   ByVal Row As Long, _
   ByVal Column As Long _
) As Long
swTable.CellTextHorizontalJustification(Row, Column) = swTextJustificationCenter

Parameter

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

Wert

Die Ausrichtung aus swTextJustification_e: swTextJustificationLeft, swTextJustificationCenter oder swTextJustificationRight.

Beispiel

' swTable ist eine Tabelle (TableAnnotation), etwa aus View.GetFirstTableAnnotation2.
Dim i As Long
For i = 0 To swTable.RowCount - 1
    swTable.CellTextHorizontalJustification(i, 0) = swTextJustificationRight
Next i

Bemerkungen

Für die ganze Tabelle gibt es TableAnnotation.TextHorizontalJustification. Ob die Zählung ausgeblendete Zeilen und Spalten mitzählt, sagt die Hilfe hier nicht.

Siehe auch

Verfügbarkeit

SOLIDWORKS 2004

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

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