WinForms

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

    Show / Hide Table of Contents

    Class Style

    Class for Style.

    Inheritance
    System.Object
    Style
    Implements
    IFillAttributes
    IStrokeAttributes
    ITransformAttribute
    IOpacityAttribute
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: Syncfusion.SVG.IO
    Assembly: Syncfusion.Diagram.Base.dll
    Syntax
    public class Style : IFillAttributes, IStrokeAttributes, ITransformAttribute, IOpacityAttribute

    Constructors

    Style()

    Initializes a new instance of the Style class.

    Declaration
    public Style()

    Style(String)

    Initializes a new instance of the Style class.

    Declaration
    public Style(string value)
    Parameters
    Type Name Description
    System.String value

    The value.

    Properties

    Attributes

    Gets the attributes.

    Declaration
    public Hashtable Attributes { get; }
    Property Value
    Type Description
    System.Collections.Hashtable

    The attributes.

    Divisor

    Gets the divisor.

    Declaration
    public static Regex Divisor { get; }
    Property Value
    Type Description
    System.Text.RegularExpressions.Regex

    The divisor.

    Methods

    Add(String, Object)

    Adds the specified attr.

    Declaration
    public void Add(string attr, object value)
    Parameters
    Type Name Description
    System.String attr

    The attr.

    System.Object value

    The value.

    GetAttribute(Object, Object)

    Gets the attribute.

    Declaration
    protected object GetAttribute(object key, object defValue)
    Parameters
    Type Name Description
    System.Object key

    The key.

    System.Object defValue

    The def value.

    Returns
    Type Description
    System.Object

    The object.

    SetAttribute(Object, Object, Object)

    Sets the attribute.

    Declaration
    protected void SetAttribute(object key, object value, object defValue)
    Parameters
    Type Name Description
    System.Object key

    The key.

    System.Object value

    The value.

    System.Object defValue

    The def value.

    ToString()

    Returns a System.String that represents the current System.Object.

    Declaration
    public override string ToString()
    Returns
    Type Description
    System.String

    A System.String that represents the current System.Object.

    Overrides
    System.Object.ToString()

    Explicit Interface Implementations

    IFillAttributes.Fill

    Gets or sets the fill.

    Declaration
    NoneColor IFillAttributes.Fill { get; set; }
    Returns
    Type Description
    NoneColor

    The fill.

    IFillAttributes.FillOpacity

    Gets or sets the fill opacity.

    Declaration
    Opacity IFillAttributes.FillOpacity { get; set; }
    Returns
    Type Description
    Opacity

    The fill opacity.

    IOpacityAttribute.Opacity

    Gets or sets the opacity.

    Declaration
    Opacity IOpacityAttribute.Opacity { get; set; }
    Returns
    Type Description
    Opacity

    The opacity.

    IStrokeAttributes.Stroke

    Gets or sets the stroke.

    Declaration
    NoneColor IStrokeAttributes.Stroke { get; set; }
    Returns
    Type Description
    NoneColor

    The stroke.

    IStrokeAttributes.StrokeDasharray

    Gets or sets the stroke dasharray.

    Declaration
    FloatArray IStrokeAttributes.StrokeDasharray { get; set; }
    Returns
    Type Description
    FloatArray

    The stroke dasharray.

    IStrokeAttributes.StrokeDashoffset

    Gets or sets the stroke dashoffset.

    Declaration
    Length IStrokeAttributes.StrokeDashoffset { get; set; }
    Returns
    Type Description
    Length

    The stroke dashoffset.

    IStrokeAttributes.StrokeLinecap

    Gets or sets the stroke linecap.

    Declaration
    EStrokeLinecap IStrokeAttributes.StrokeLinecap { get; set; }
    Returns
    Type Description
    EStrokeLinecap

    The stroke linecap.

    IStrokeAttributes.StrokeLinejoin

    Gets or sets the stroke linejoin.

    Declaration
    EStrokeLinejoin IStrokeAttributes.StrokeLinejoin { get; set; }
    Returns
    Type Description
    EStrokeLinejoin

    The stroke linejoin.

    IStrokeAttributes.StrokeMiterlimit

    Gets or sets the stroke miterlimit.

    Declaration
    Number IStrokeAttributes.StrokeMiterlimit { get; set; }
    Returns
    Type Description
    Number

    The stroke miterlimit.

    IStrokeAttributes.StrokeOpacity

    Gets or sets the stroke opacity.

    Declaration
    Opacity IStrokeAttributes.StrokeOpacity { get; set; }
    Returns
    Type Description
    Opacity

    The stroke opacity.

    IStrokeAttributes.StrokeWidth

    Gets or sets the width of the stroke.

    Declaration
    Length IStrokeAttributes.StrokeWidth { get; set; }
    Returns
    Type Description
    Length

    The width of the stroke.

    ITransformAttribute.Transform

    Gets or sets the transform.

    Declaration
    TransformList ITransformAttribute.Transform { get; set; }
    Returns
    Type Description
    TransformList

    The transform.

    Implements

    IFillAttributes
    IStrokeAttributes
    ITransformAttribute
    IOpacityAttribute
    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved