combit List & Label 25 - .NET Online Web Help
FontDesignerProperty Constructor
Example 


combit.ListLabel25.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.
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 7 SP1 - Windows 10 Version 1909, Windows Server 2008 R2 - 2019

See Also

Reference

FontDesignerProperty Class
FontDesignerProperty Members