Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
710
ResolveAppearance
posted

I'm am exporting to PDF and in the CellExporting event, I am trying to resolve the e.GridColumn.CellAppearance.TextHAlign property, but can't figure out how. Where is the ResolveAppearance method.

 

Parents
No Data
Reply
  • 469350
    Offline posted

    Hi,

    It's hard to answer your question without knowing what exactly you are trying to do. The property you listed here is a property of the column. So this setting gets resolved on the cell level, not the column level.

    To resolve the on-screen TextHAlign of a cell, you would do something like this:


            private void ultraGridDocumentExporter1_CellExporting(object sender, Infragistics.Win.UltraWinGrid.DocumentExport.CellExportingEventArgs e)
            {
                UltraGridCell cell = e.GridRow.Cells[e.GridColumn];
                AppearanceData appearanceData = new AppearanceData();
                AppearancePropFlags appearancePropFlags = AppearancePropFlags.TextHAlign;
                cell.ResolveAppearance(ref appearanceData, appearancePropFlags);
                Debug.WriteLine(appearanceData.TextHAlign, "TextHAlign");
            }

     

     

Children
No Data