menu

Xamarin.Android

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

    Show / Hide Table of Contents

    Class Stencil

    Represents the stencil which consists of symbol groups, each of which has a header and a symbol group.

    Inheritance
    System.Object
    Stencil
    Namespace: Syncfusion.SfDiagram.Android
    Assembly: Syncfusion.SfDiagram.Android.dll
    Syntax
    public class Stencil : FrameLayout

    Constructors

    Stencil(Context)

    Initializes a new instance of the Stencil class.

    Declaration
    public Stencil(Context context)
    Parameters
    Type Name Description
    Android.Content.Context context

    Represents the current context.

    Stencil(Context, IAttributeSet)

    Initializes a new instance of the Stencil class.

    Declaration
    public Stencil(Context context, IAttributeSet attributes)
    Parameters
    Type Name Description
    Android.Content.Context context

    Represents the current context.

    Android.Util.IAttributeSet attributes

    Represents the current attributes.

    Properties

    BackgroundColor

    Gets or sets the background color of the stencil.

    Declaration
    public Color BackgroundColor { get; set; }
    Property Value
    Type
    Android.Graphics.Color

    BorderColor

    Gets or sets the border color of the stencil.

    Declaration
    public Color BorderColor { get; set; }
    Property Value
    Type
    Android.Graphics.Color

    HeaderHeight

    Gets or sets or set the header height.

    Declaration
    public int HeaderHeight { get; set; }
    Property Value
    Type Description
    System.Int32

    It defines the header height of the palette.

    Height

    Gets or sets the height.

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

    Gets or sets the height of the palette.

    SymbolGroups

    Gets or sets the symbol groups.

    Declaration
    public SymbolGroups SymbolGroups { get; set; }
    Property Value
    Type Description
    SymbolGroups

    It defines the symbol groups.

    SymbolStyle

    Gets or sets the symbol style.

    Declaration
    public SymbolStyle SymbolStyle { get; set; }
    Property Value
    Type Description
    SymbolStyle

    The symbol style.

    Width

    Gets or sets the Width.

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

    Gets or set the width of the palette.

    Methods

    OnDraw(Canvas)

    Override method for Stencil OnDraw.

    Declaration
    protected override void OnDraw(Canvas canvas)
    Parameters
    Type Name Description
    Android.Graphics.Canvas canvas

    canvas value.

    OnLayout(Boolean, Int32, Int32, Int32, Int32)

    Override method for Stencil On Layout.

    Declaration
    protected override void OnLayout(bool changed, int l, int t, int r, int b)
    Parameters
    Type Name Description
    System.Boolean changed

    changed value.

    System.Int32 l

    l value.

    System.Int32 t

    t value.

    System.Int32 r

    r value.

    System.Int32 b

    b value.

    UpdateStencilView()

    Define the UpdateStencilView.

    Declaration
    public void UpdateStencilView()
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved