combit List & Label 29 - .NET Help
combit.Reporting.Dom Namespace / PropertySettings Class / DefaultFont Property
Example


In This Topic
    DefaultFont Property (PropertySettings)
    In This Topic
    Gets or sets the project default font. This is the default for other default fonts (e.g. the DefaultFont of a report container item).
    Syntax
    'Declaration
     
    
    Public ReadOnly Property DefaultFont As PropertyFont
    public PropertyFont DefaultFont {get;}
    public:
    property PropertyFont^ DefaultFont {
       PropertyFont^ get();
    }
    Example
    // change default font for objects
    proj.Settings.DefaultFont.Bold = "True"; 
    proj.Settings.DefaultFont.FaceName = "\"Arial\""; 
    proj.Settings.DefaultFont.Size = "16"; 
    proj.Settings.DefaultFont.Width = "10"; 
    proj.Settings.DefaultFont.Color = "RGB(255, 0, 0)";
    Requirements

    Platforms: Windows 10 (Version 21H2 - 23H2), Windows 11 (21H2 - 22H2), Windows Server 2016 - 2022
    .NET: .NET Framework 4.8, .NET 6, .NET 7, .NET 8

    See Also