alexa
menu

Xamarin.Forms

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

    Show / Hide Table of Contents

    Class SfColor

    Inheritance
    System.Object
    SfColor
    Namespace: Syncfusion.XForms.MacOS.Core
    Assembly: Syncfusion.Core.XForms.macOS.dll
    Syntax
    public class SfColor : NSColor

    Constructors

    SfColor(IntPtr)

    Declaration
    public SfColor(IntPtr handle)
    Parameters
    Type Name Description
    System.IntPtr handle

    Methods

    FromHSB(nfloat, nfloat, nfloat)

    Declaration
    public static NSColor FromHSB(nfloat hue, nfloat saturation, nfloat brightness)
    Parameters
    Type Name Description
    System.nfloat hue
    System.nfloat saturation
    System.nfloat brightness
    Returns
    Type
    AppKit.NSColor

    FromHSBA(nfloat, nfloat, nfloat, nfloat)

    Declaration
    public static NSColor FromHSBA(nfloat hue, nfloat saturation, nfloat brightness, nfloat alpha)
    Parameters
    Type Name Description
    System.nfloat hue
    System.nfloat saturation
    System.nfloat brightness
    System.nfloat alpha
    Returns
    Type
    AppKit.NSColor

    FromRGB(nfloat, nfloat, nfloat)

    Declaration
    public static NSColor FromRGB(nfloat r, nfloat g, nfloat b)
    Parameters
    Type Name Description
    System.nfloat r
    System.nfloat g
    System.nfloat b
    Returns
    Type
    AppKit.NSColor

    FromRGBA(nfloat, nfloat, nfloat, nfloat)

    Declaration
    public static NSColor FromRGBA(nfloat r, nfloat g, nfloat b, nfloat a)
    Parameters
    Type Name Description
    System.nfloat r
    System.nfloat g
    System.nfloat b
    System.nfloat a
    Returns
    Type
    AppKit.NSColor
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved