Class PdfViewerCommentPanelSettings
Represents the settings for the comment panel in a PDF viewer component in Blazor applications.
Inheritance
Inherited Members
Namespace: Syncfusion.Blazor.SfPdfViewer
Assembly: Syncfusion.Blazor.SfPdfViewer.dll
Syntax
public class PdfViewerCommentPanelSettings : SfBaseComponent, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
Remarks
This class provides functionality to manage and initialize the settings related to the comment panel in the PDF viewer, such as enabling multiline support and customizing the date-time format for the comment timestamps. These settings are initialized asynchronously during the component lifecycle, and they are updated whenever parameters change.
Examples
Below is an example of how to use PdfViewerCommentPanelSettings in a Blazor component:
Constructors
PdfViewerCommentPanelSettings()
Declaration
public PdfViewerCommentPanelSettings()
Properties
ChildContent
Gets or sets the child content to render within this settings component.
Declaration
[Parameter]
[JsonIgnore]
public RenderFragment ChildContent { get; set; }
Property Value
| Type |
|---|
| RenderFragment |
DateTimeFormat
Allows the customization of dates within the comment panel.
Declaration
[Parameter]
public string DateTimeFormat { get; set; }
Property Value
| Type |
|---|
| string |
JsNamespace
Gets or sets the JavaScript namespace used for interop mapping.
Declaration
protected virtual string JsNamespace { get; set; }
Property Value
| Type |
|---|
| string |
Multiline
Enable or disable the use of multiline text boxes in the comment panel. By default it is false.
Declaration
[Parameter]
public bool Multiline { get; set; }
Property Value
| Type |
|---|
| bool |
mainParent
Gets or sets the main parent component reference.
Declaration
protected SfBaseComponent mainParent { get; set; }
Property Value
| Type |
|---|
| SfBaseComponent |
Methods
BuildRenderTree(RenderTreeBuilder)
Declaration
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
| Type | Name | Description |
|---|---|---|
| RenderTreeBuilder | __builder |
Overrides
OnInitializedAsync()
Performs asynchronous initialization of the commentpanel settings.
Declaration
protected override Task OnInitializedAsync()
Returns
| Type |
|---|
| Task |
Overrides
OnParametersSetAsync()
Applies parameter changes and updates child properties when needed.
Declaration
protected override Task OnParametersSetAsync()
Returns
| Type |
|---|
| Task |