Class QRCodeGeneratorDisplayText
Specifies the class which contains QRCode display text data and functionalities.
Inheritance
Inherited Members
Namespace: Syncfusion.Blazor.BarcodeGenerator
Assembly: Syncfusion.Blazor.dll
Syntax
public class QRCodeGeneratorDisplayText : SfBaseComponent, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
Examples
<SfQRCodeGenerator Width="200" Height="200" Version="QRCodeVersion.Version01" Value="65213323">
<QRCodeGeneratorDisplayText Text = "" Font="monospace" Size="15" Alignment="Alignment.Left" Position="TextPosition.Top">
</QRCodeGeneratorDisplayText>
</SfQRCodeGenerator>
Constructors
QRCodeGeneratorDisplayText()
Declaration
public QRCodeGeneratorDisplayText()
Properties
Alignment
Defines the horizontal alignment of the text. By default, it is set to Center.
Declaration
[Parameter]
public Alignment Alignment { get; set; }
Property Value
| Type |
|---|
| Alignment |
ChildContent
Sets content for QR code generator display text element including HTML support and its customizations.
Declaration
[Parameter]
public RenderFragment ChildContent { get; set; }
Property Value
| Type |
|---|
| RenderFragment |
Font
Defines the font style of the text. By default, it is set to monospace.
Declaration
[Parameter]
public string Font { get; set; }
Property Value
| Type |
|---|
| string |
Margin
It sets the space to be left between the text and its QRCode. By default, it is set to 0 from all sides.
Declaration
[Parameter]
public QRCodeTextMargin Margin { get; set; }
Property Value
| Type |
|---|
| QRCodeTextMargin |
Position
Defines the position of the text. By default, it is set to Bottom.
Declaration
[Parameter]
public TextPosition Position { get; set; }
Property Value
| Type |
|---|
| TextPosition |
Size
Defines the size of the text. By default, it is set to 20.
Declaration
[Parameter]
public double Size { get; set; }
Property Value
| Type |
|---|
| double |
Text
Gets or sets the textual description of the QRCode.
Declaration
[Parameter]
public string Text { get; set; }
Property Value
| Type |
|---|
| string |
Remarks
Please ensure that the value is not set to null. If set to null, the QRCode generator's default value will be displayed.
Visibility
Defines the visibility of the text. By default, it is set to true.
Declaration
[Parameter]
public bool Visibility { get; set; }
Property Value
| Type |
|---|
| bool |
Methods
BuildRenderTree(RenderTreeBuilder)
Declaration
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
| Type | Name | Description |
|---|---|---|
| RenderTreeBuilder | __builder |
Overrides
OnInitializedAsync()
OnInitializedAsync is invoked when the component is initialized.
Declaration
protected override Task OnInitializedAsync()
Returns
| Type |
|---|
| Task |
Overrides
OnParametersSetAsync()
Sets the parameters for the QRCodeGeneratorDisplayText component in the render tree.
Declaration
protected override Task OnParametersSetAsync()
Returns
| Type |
|---|
| Task |