menu

Xamarin.Forms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class SfUtils - Xamarin.Forms API Reference | Syncfusion

    Show / Hide Table of Contents

    Class SfUtils

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

    Methods

    ColorWithAlpha(NSColor, nfloat)

    Declaration
    public static NSColor ColorWithAlpha(this NSColor color, nfloat alpha)
    Parameters
    Type Name Description
    AppKit.NSColor color
    System.nfloat alpha
    Returns
    Type
    AppKit.NSColor

    DrawString(NSString, CGPoint, NSStringAttributes)

    Declaration
    public static void DrawString(this NSString str, CGPoint point, NSStringAttributes attributes)
    Parameters
    Type Name Description
    Foundation.NSString str
    CoreGraphics.CGPoint point
    AppKit.NSStringAttributes attributes

    GetSizeUsingAttributes(NSString, NSStringAttributes)

    Declaration
    public static CGSize GetSizeUsingAttributes(this NSString str, NSStringAttributes attributes)
    Parameters
    Type Name Description
    Foundation.NSString str
    AppKit.NSStringAttributes attributes
    Returns
    Type
    CoreGraphics.CGSize

    InsetRect(NSEdgeInsets, CGRect)

    Declaration
    public static CGRect InsetRect(this NSEdgeInsets edgeInsets, CGRect rect)
    Parameters
    Type Name Description
    AppKit.NSEdgeInsets edgeInsets
    CoreGraphics.CGRect rect
    Returns
    Type
    CoreGraphics.CGRect

    StringSize(NSString, NSFont)

    Declaration
    public static CGSize StringSize(this NSString str, NSFont font)
    Parameters
    Type Name Description
    Foundation.NSString str
    AppKit.NSFont font
    Returns
    Type
    CoreGraphics.CGSize

    StringSize(String, NSFont)

    Declaration
    public static CGSize StringSize(this string str, NSFont font)
    Parameters
    Type Name Description
    System.String str
    AppKit.NSFont font
    Returns
    Type
    CoreGraphics.CGSize
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved