combit List & Label 29 - .NET Help
combit.Reporting.DesignerExtensions Namespace / ColorDesignerProperty Class / ColorDesignerProperty 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.
Example


In This Topic
    ColorDesignerProperty Constructor
    In This Topic
    Creates a new ColorDesignerProperty.
    Syntax
    'Declaration
     
    
    Public Function New( _
       ByVal name As String, _
       ByVal defaultValue As Color _
    )
    public ColorDesignerProperty( 
       string name,
       Color defaultValue
    )
    public:
    ColorDesignerProperty( 
       String^ name,
       Color 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.
    Example
    ColorDesignerProperty BgcolorProperty = new ColorDesignerProperty("TooltipBackgroundColor", Color.White);
    BgcolorProperty.DisplayName = Resources.ToolTipBg ;
    BgcolorProperty.Description = Resources.ToolTipBgDescr ;
    DesignerProperties.Add(BgcolorProperty);
    Dim BgcolorProperty As New ColorDesignerProperty("TooltipBackgroundColor", Color.White)
    BgcolorProperty.DisplayName = Resources.ToolTipBg
    BgcolorProperty.Description = Resources.ToolTipBgDescr
    DesignerProperties.Add(BgcolorProperty)
    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