Ticket Q424234
Visible to All Users

Horizontal right on cell?

created 13 years ago

Hi how can i set horisontal alignment = right on a cell?
I can set Bottom alignment and it works, but i can't find horisontal alignment on a cell… help :)

DevExpress.XtraRichEdit.API.Native.Table table = serverDoc.Document.Tables.Add(serverDoc.Document.Range.End, dataTableRows + 1, columnsToDisplay.Count, AutoFitBehaviorType.AutoFitToContents);// .AutoFitToWindow);

Type tp = gridView1.VisibleColumns.View.GetRowCellValue(i, bb).GetType();
if (tp != typeof(string))
{
table.Cell(i + 1, ii).VerticalAlignment = TableCellVerticalAlignment.Bottom;
//Missing table.Cell(i + 1, ii).HorisontalAlignment = TableCellHorisontalAlignment.Right;

}

Comments (1)

    Awesome :) It works…Thanks

    Answers

    created 13 years ago (modified 12 years ago)

    Hi,
    Please note that TableCell does not have this concept.
    Horizontal alignment in a table cell should be adjusted at the paragraph level as shown in the Get/Set horizontal alignment in tablecell ticket. Feel free to ask for clarification if necessary. We will be glad to help you.
    Thanks,
    Alessandro.

      Comments (2)
      Alessandro (DevExpress Support) 12 years ago

        You are welcome! We are always glad to help you in case of any problems.

        Alessandro (DevExpress Support) 12 years ago

          P.S.: Once your question has been resolved to your satisfaction, you can mark it as a Solution. It expedites the process of searching for a solution by our customers who may encounter a similar issue and improves the overall progress of our community. To mark the ticket as a Solution, click the "Mark this answer as solution" button at the right side of the answer.

          Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

          Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.