alexa
menu

WinForms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download

    Show / Hide Table of Contents

    Class AvatarStyle

    Represents the style settings for the avatar including colors and font for titles and subtitles.

    Inheritance
    System.Object
    AvatarStyle
    Namespace: Syncfusion.Windows.Forms
    Assembly: Syncfusion.Shared.Base.dll
    Syntax
    public class AvatarStyle : Object

    Constructors

    AvatarStyle()

    Declaration
    public AvatarStyle()

    Properties

    AvatarBackColor

    Gets or sets the background color for the avatar when content is initials. The default value is System.Drawing.Color.LightGray.

    Declaration
    public Color AvatarBackColor { get; set; }
    Property Value
    Type
    System.Drawing.Color

    AvatarCharacterType

    Gets or sets the avatar character to be displayed when AvatarContent is set to AvatarCharacter.

    Declaration
    public AvatarCharacter AvatarCharacterType { get; set; }
    Property Value
    Type
    AvatarCharacter

    AvatarContent

    Gets or sets the content type for the avatar, which can be a character, initials, or a custom image.

    Declaration
    public AvatarContentType AvatarContent { get; set; }
    Property Value
    Type
    AvatarContentType

    AvatarForeColor

    Gets or sets the initials text color for the avatar. The default value is System.Drawing.Color.White.

    Declaration
    public Color AvatarForeColor { get; set; }
    Property Value
    Type
    System.Drawing.Color

    AvatarImage

    Gets or sets the custom image for the avatar when AvatarContent is set to CustomImage.

    Declaration
    public Image AvatarImage { get; set; }
    Property Value
    Type
    System.Drawing.Image

    AvatarInitialsType

    Gets or sets the initials type for the avatar, specifying single or double character display.

    Declaration
    public AvatarInitialsType AvatarInitialsType { get; set; }
    Property Value
    Type
    AvatarInitialsType

    AvatarName

    Gets or sets the avatar name used for initials display when AvatarContent is set to Initials.

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

    AvatarShape

    Gets or sets the shape of the avatar, which can be square, circle, or custom.

    Declaration
    public AvatarShape AvatarShape { get; set; }
    Property Value
    Type
    AvatarShape

    CornerRadius

    Gets or sets the corner radius of the avatar when AvatarShape is Custom. Square uses the built-in size-table radius; Circle ignores this value. The default is 0.

    Declaration
    public float CornerRadius { get; set; }
    Property Value
    Type
    System.Single
    Back to top Generated by DocFX
    Copyright © 2001 - 2026 Syncfusion Inc. All Rights Reserved