Xceed Workbooks for .NET v3.0 Documentation
Xceed.Workbooks.NET Assembly / Xceed.Workbooks.NET Namespace / StyledWorksheetElement Class
Members Example


In This Topic
    StyledWorksheetElement Class
    In This Topic
    Abstract class that can be used to stylize the various elements in a Worksheet.
    Syntax
    'Declaration
     
    
    Public MustInherit Class StyledWorksheetElement 
       Inherits WorksheetElement
    'Usage
     
    
    Dim instance As StyledWorksheetElement
    public abstract class StyledWorksheetElement : WorksheetElement 
    Example
    using( var doc = Workbook.Load( "test.xlsx") )
      {
        var worksheet = doc.Worksheets[ 0 ];        
        worksheet.Cells[ "A1" ].Style.CustomFormat =  “$0.00”;  
        worksheet.Cells[ “A1” ].Value = 25;
        doc.Save();
      }
    Inheritance Hierarchy

    System.Object
       Xceed.Workbooks.NET.WorkbookElement
          Xceed.Workbooks.NET.WorksheetElement
             Xceed.Workbooks.NET.StyledWorksheetElement
                Xceed.Workbooks.NET.Cell
                Xceed.Workbooks.NET.LinearWorksheetElement
                Xceed.Workbooks.NET.StyledRange<T>

    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also