Class DataMatrixGeneratorDisplayText
Specifies the class which contains DataMatrix display text data and functionalities.
Inherited Members
Namespace: Syncfusion.Blazor.BarcodeGenerator
Assembly: Syncfusion.Blazor.dll
Syntax
public class DataMatrixGeneratorDisplayText : SfBaseComponent
Examples
<SfDataMatrixGenerator Width="200" Height="200" Value="65213323" Encoding="DataMatrixEncoding.ASCIINumeric" >
<DataMatrixGeneratorDisplayText Text="" Font="monospace" Size="25" Alignment="Alignment.Left" Position="TextPosition.Top">
</DataMatrixGeneratorDisplayText>
</SfDataMatrixGenerator>
Constructors
DataMatrixGeneratorDisplayText()
Declaration
public DataMatrixGeneratorDisplayText()
Properties
Alignment
Defines the horizontal alignment of the text. By default, it is set to Center.
Declaration
public Alignment Alignment { get; set; }
Property Value
Type |
---|
Alignment |
ChildContent
Sets content for data matrix display text element including HTML support and its customizations.
Declaration
public RenderFragment ChildContent { get; set; }
Property Value
Type |
---|
Microsoft.AspNetCore.Components.RenderFragment |
Font
Defines the font style of the text. By default, it is set to monospace.
Declaration
public string Font { get; set; }
Property Value
Type |
---|
System.String |
Margin
It sets the space to be left between the text and its DataMatrix. By default, it is set to 0 from all sides.
Declaration
public DataMatrixTextMargin Margin { get; set; }
Property Value
Type |
---|
DataMatrixTextMargin |
Position
Defines the position of the text. By default, it is set to Bottom.
Declaration
public TextPosition Position { get; set; }
Property Value
Type |
---|
TextPosition |
Size
Defines the size of the text. By default, it is set to 20.
Declaration
public double Size { get; set; }
Property Value
Type |
---|
System.Double |
Text
Sets the textual description of the DataMatrix.
Declaration
public string Text { get; set; }
Property Value
Type |
---|
System.String |
Visibility
Defines the visibility of the text. By default, it is set to true.
Declaration
public bool Visibility { get; set; }
Property Value
Type |
---|
System.Boolean |
Methods
BuildRenderTree(RenderTreeBuilder)
Declaration
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder | __builder |
OnInitializedAsync()
OnInitializedAsync is invoked when the component is initialized.
Declaration
protected override Task OnInitializedAsync()
Returns
Type |
---|
System.Threading.Tasks.Task |
Overrides
OnParametersSetAsync()
Sets the parameters for the DataMatrixGeneratorDisplayText component in the render tree.
Declaration
protected override Task OnParametersSetAsync()
Returns
Type |
---|
System.Threading.Tasks.Task |