Autodesk.AutoCAD.DatabaseServices Namespace > Table Class > Table Methods > SetAlignment Method > SetAlignment(int, int, Autodesk.AutoCAD.DatabaseServices.CellAlignment) Method
Table.SetAlignment(int, int, Autodesk.AutoCAD.DatabaseServices.CellAlignment) Method   
Description

Obsolete. Sets the alignment of the text or block in the specified cell of the table. 

Possible cell alignment values are TopLeft, TopCenter, TopRight, MiddleLeft, MiddleCenter, MiddleRight, BottomLeft, BottomCenter, and BottomRight

Note: This method is deprecated and may be removed in a future release. 

Visual Basic
Public virtual Function SetAlignment(
    row As Integer, 
    col As Integer, 
    align As Autodesk.AutoCAD.DatabaseServices.CellAlignment
) As void
C#
public virtual void SetAlignment(
    int row, 
    int col, 
    Autodesk.AutoCAD.DatabaseServices.CellAlignment align
);
Parameters
Parameters 
Description 
int row 
Input specifying the zero-based row index for the ce 
int col 
Input specifying the zero-based column index for the cell 
Autodesk.AutoCAD.DatabaseServices.CellAlignment align 
Input enum value specifying the cell alignment 

Use Table.Cells[row,column].Alignment instead.

Links
   Comments?