Class DotCodeDisplayText
Specifies the human-readable text rendered with DotCode.
Inheritance
Inherited Members
Namespace: Syncfusion.Blazor.BarcodeGenerator
Assembly: Syncfusion.Blazor.BarcodeGenerator.dll
Syntax
public class DotCodeDisplayText : SfBaseComponent, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
Constructors
DotCodeDisplayText()
Declaration
public DotCodeDisplayText()
Properties
Alignment
Gets or sets the horizontal text alignment.
Declaration
[Parameter]
public Alignment Alignment { get; set; }
Property Value
| Type | Description |
|---|---|
| Alignment | The horizontal alignment of the display text. |
ChildContent
Gets or sets nested text-margin content.
Declaration
[Parameter]
public RenderFragment? ChildContent { get; set; }
Property Value
| Type | Description |
|---|---|
| RenderFragment | A render fragment containing the nested DotCodeTextMargin. |
FontFamily
Gets or sets the display-text font family.
Declaration
[Parameter]
public string FontFamily { get; set; }
Property Value
| Type | Description |
|---|---|
| string | The CSS font-family value. The default is |
FontSize
Gets or sets the display-text font size.
Declaration
[Parameter]
public double FontSize { get; set; }
Property Value
| Type | Description |
|---|---|
| double | The font size in pixels. The default is |
Margin
Gets or sets the margin configuration of the display text.
Declaration
[Parameter]
public DotCodeTextMargin Margin { get; set; }
Property Value
| Type | Description |
|---|---|
| DotCodeTextMargin | A DotCodeTextMargin containing the text margins. |
Position
Gets or sets whether text is rendered above or below the symbol.
Declaration
[Parameter]
public TextPosition Position { get; set; }
Property Value
| Type | Description |
|---|---|
| TextPosition | The position of the display text relative to the symbol. |
Text
Gets or sets the display text. Empty text uses the encoded value.
Declaration
[Parameter]
public string Text { get; set; }
Property Value
| Type | Description |
|---|---|
| string | The text to render below or above the symbol. |
Visibility
Gets or sets whether display text is visible.
Declaration
[Parameter]
public bool Visibility { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
|
Methods
BuildRenderTree(RenderTreeBuilder)
Declaration
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
| Type | Name | Description |
|---|---|---|
| RenderTreeBuilder | __builder |
Overrides
OnInitializedAsync()
Initializes the display text and margin properties.
Declaration
protected override Task OnInitializedAsync()
Returns
| Type | Description |
|---|---|
| Task | A task that represents the asynchronous initialization operation. |
Overrides
OnParametersSetAsync()
Handles parameter updates and refreshes the parent barcode during static server rendering when a property has changed.
Declaration
protected override Task OnParametersSetAsync()
Returns
| Type | Description |
|---|---|
| Task | A task that represents the asynchronous parameter update operation. |