combit List & Label 29 - .NET Help
combit.Reporting.DesignerExtensions Namespace / FontDesignerProperty Class / FontDesignerProperty Constructor
Name of the property. This name will be used to identify the property in the project file. Changing the name after reports containing the property have been deployed is a breaking change. To change the name that is displayed to the user, set the DisplayName property instead.
Default value of the property. In the case of a font property, this can be set by concatenating all the fields of the Windows LOGFONT structure (see MSDN) in a string, e.g. "{(0,0,0),12.000000,0,0,0,0,700,0,0,0,0,3,78,0,34,Arial}" for a black 12pt Arial font.
Example


In This Topic
    FontDesignerProperty Constructor
    In This Topic
    Syntax
    'Declaration
     
    
    Public Function New( _
       ByVal name As String, _
       ByVal defaultValue As Object _
    )
    public FontDesignerProperty( 
       string name,
       object defaultValue
    )
    public:
    FontDesignerProperty( 
       String^ name,
       Object^ defaultValue
    )

    Parameters

    name
    Name of the property. This name will be used to identify the property in the project file. Changing the name after reports containing the property have been deployed is a breaking change. To change the name that is displayed to the user, set the DisplayName property instead.
    defaultValue
    Default value of the property. In the case of a font property, this can be set by concatenating all the fields of the Windows LOGFONT structure (see MSDN) in a string, e.g. "{(0,0,0),12.000000,0,0,0,0,700,0,0,0,0,3,78,0,34,Arial}" for a black 12pt Arial font.
    Example
    FontDesignerProperty FontProperty = new FontDesignerProperty("TooltipFont", String.Empty);
    FontProperty.DisplayName = Resources.ToolTipFont;
    FontProperty.Description = Resources.ToolTipFontDescr;
    DesignerProperties.Add(FontProperty);
    Dim FontProperty As New FontDesignerProperty("TooltipFont", "")
    FontProperty.DisplayName = Resources.ToolTipFont
    FontProperty.Description = Resources.ToolTipFontDescr
    DesignerProperties.Add(FontProperty)
    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