menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class SfCard - Blazor API Reference | Syncfusion

    Show / Hide Table of Contents

    Class SfCard

    The Card is a container-based user interface control built using for displaying organized content.

    Inheritance
    System.Object
    SfBaseComponent
    SfCard
    Inherited Members
    SfBaseComponent.Dispose()
    SfBaseComponent.Dispose(Boolean)
    SfBaseComponent.OnAfterRenderAsync(Boolean)
    SfBaseComponent.OnInitializedAsync()
    SfBaseComponent.OnObservableChange(String, Object, Boolean, NotifyCollectionChangedEventArgs)
    Namespace: Syncfusion.Blazor.Cards
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class SfCard : SfBaseComponent

    Constructors

    SfCard()

    Declaration
    public SfCard()

    Properties

    ChildContent

    Represents a segment of UI content, implemented.

    Declaration
    public RenderFragment ChildContent { get; set; }
    Property Value
    Type Description
    Microsoft.AspNetCore.Components.RenderFragment

    Accepts a RenderFragment that defines the content of the UI element.

    CssClass

    Defines CssClass for the Card component.

    Declaration
    public string CssClass { get; set; }
    Property Value
    Type Description
    System.String

    Accepts a CSS class string separated by outline to customize the appearance of card component.

    EnableRtl

    Enable or disable rendering component in the right to left direction.

    Declaration
    public bool EnableRtl { get; set; }
    Property Value
    Type Description
    System.Boolean

    true, if the right to left direction can be enabled for the component. The default value is false.

    HtmlAttributes

    You can add the additional html attributes such as id, title etc., to the button element.

    Declaration
    public Dictionary<string, object> HtmlAttributes { get; set; }
    Property Value
    Type
    System.Collections.Generic.Dictionary<System.String, System.Object>

    ID

    Defines Id for the Card component.

    Declaration
    public string ID { get; set; }
    Property Value
    Type Description
    System.String

    Accepts the string value. It represents the unique identifier for the Card component.

    Orientation

    Defines the Orientation of the card.

    Declaration
    public CardOrientation Orientation { get; set; }
    Property Value
    Type Description
    CardOrientation

    A value of the CardOrientation enumeration that specifies the orientation of the card component. The default value is Vertical.

    Methods

    BuildRenderTree(RenderTreeBuilder)

    Declaration
    protected override void BuildRenderTree(RenderTreeBuilder __builder)
    Parameters
    Type Name Description
    Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder

    OnInitialized()

    Method invoked when the component is ready to start.

    Declaration
    protected override void OnInitialized()

    OnParametersSetAsync()

    Method invoked when the component has received parameters from its parent.

    Declaration
    protected override Task OnParametersSetAsync()
    Returns
    Type Description
    System.Threading.Tasks.Task

    A System.Threading.Tasks.Task representing any asynchronous operation.

    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved