Method CreateTemplateWithBoldText
CreateTemplateWithBoldText(string, string, string, IReadOnlyFontAndColor?, bool)
Creates template with text which has a middle part with bold font.
public static TemplateControls.BoldText<GenericLabel> CreateTemplateWithBoldText(string prefix, string boldText, string suffix, IReadOnlyFontAndColor? fontAndColor = null, bool hasBorder = false)
Parameters
prefix
stringFirst part of the text.
boldText
stringMiddle part of the text with bold attribute.
suffix
stringLast part of the text.
fontAndColor
IReadOnlyFontAndColorDefault font and color attributes of the text.
hasBorder
boolWhether to draw default border around the text.
Returns
Remarks
After template is created any part of it's text can be changed including it's font and color attributes using template properties.
CreateTemplateWithBoldText<TLabel>(string, string, string, IReadOnlyFontAndColor?, bool)
Creates template with text which has a middle part with bold font.
public static TemplateControls.BoldText<TLabel> CreateTemplateWithBoldText<TLabel>(string prefix, string boldText, string suffix, IReadOnlyFontAndColor? fontAndColor = null, bool hasBorder = false) where TLabel : AbstractControl, new()
Parameters
prefix
stringFirst part of the text.
boldText
stringMiddle part of the text with bold attribute.
suffix
stringLast part of the text.
fontAndColor
IReadOnlyFontAndColorDefault font and color attributes of the text.
hasBorder
boolWhether to draw default border around the text.
Returns
- TemplateControls.BoldText<TLabel>
Type Parameters
TLabel
Type of the label controls.
Remarks
After template is created any part of it's text can be changed including it's font and color attributes using template properties.