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
prefixstringFirst part of the text.
boldTextstringMiddle part of the text with bold attribute.
suffixstringLast part of the text.
fontAndColorIReadOnlyFontAndColorDefault font and color attributes of the text.
hasBorderboolWhether 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
prefixstringFirst part of the text.
boldTextstringMiddle part of the text with bold attribute.
suffixstringLast part of the text.
fontAndColorIReadOnlyFontAndColorDefault font and color attributes of the text.
hasBorderboolWhether to draw default border around the text.
Returns
- TemplateControls.BoldText<TLabel>
Type Parameters
TLabelType 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.