Table of Contents

Method CreateTemplateWithBoldText

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

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 string

First part of the text.

boldText string

Middle part of the text with bold attribute.

suffix string

Last part of the text.

fontAndColor IReadOnlyFontAndColor

Default font and color attributes of the text.

hasBorder bool

Whether to draw default border around the text.

Returns

TemplateControls.BoldText<GenericLabel>

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 string

First part of the text.

boldText string

Middle part of the text with bold attribute.

suffix string

Last part of the text.

fontAndColor IReadOnlyFontAndColor

Default font and color attributes of the text.

hasBorder bool

Whether 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.