Xamarin.Forms

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

    Show / Hide Table of Contents

    Class SFLabelStyle

    This class serves as a base class for all types of label style.

    Inheritance
    System.Object
    SFLabelStyle
    ChartAnnotationLabelStyle
    SFAxisLabelStyle
    SFAxisTitleStyle
    SFChartTrackballLabelStyle
    SFDataMarkerLabelStyle
    SFStripLineLabelStyle
    Namespace: Syncfusion.MacOS.Charts.SfChart
    Assembly: Syncfusion.SfChart.XForms.macOS.dll
    Syntax
    public class SFLabelStyle : Object

    Constructors

    SFLabelStyle()

    Declaration
    public SFLabelStyle()

    Properties

    BackgroundColor

    Gets or sets the background color for the labels.

    Declaration
    public NSColor BackgroundColor { get; set; }
    Property Value
    Type Description
    AppKit.NSColor

    BorderColor

    Gets or sets the color of the border.

    Declaration
    public NSColor BorderColor { get; set; }
    Property Value
    Type Description
    AppKit.NSColor

    BorderWidth

    Gets or sets the width of the border.

    Declaration
    public float BorderWidth { get; set; }
    Property Value
    Type Description
    System.Single

    Color

    Gets or sets the foreground color for the labels.

    Declaration
    public NSColor Color { get; set; }
    Property Value
    Type Description
    AppKit.NSColor

    Font

    Gets or sets the font style for the labels.

    Declaration
    public NSFont Font { get; set; }
    Property Value
    Type Description
    AppKit.NSFont

    LabelFormatter

    Gets or sets the different format for the labels.

    Declaration
    public NSFormatter LabelFormatter { get; set; }
    Property Value
    Type Description
    Foundation.NSFormatter

    Margin

    Gets or sets the distance insets for the labels from the border.

    Declaration
    public NSEdgeInsets Margin { get; set; }
    Property Value
    Type Description
    AppKit.NSEdgeInsets

    Methods

    OnPropertyChanged(Boolean, String)

    Declaration
    protected virtual void OnPropertyChanged(bool requestLayout, string propertyName = null)
    Parameters
    Type Name Description
    System.Boolean requestLayout
    System.String propertyName

    Events

    PropertyChanged

    Declaration
    public event PropertyChangedEventHandler PropertyChanged
    Event Type
    Type Description
    System.ComponentModel.PropertyChangedEventHandler
    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved