menu

WinForms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class RenderingStyle - WindowsForms API Reference | Syncfusion

    Show / Hide Table of Contents

    Class RenderingStyle

    Encapsulates the rendering properties of an object.

    Inheritance
    System.Object
    PropertyContainer
    RenderingStyle
    Implements
    IServiceReferenceHolder
    IServiceReferenceProvider
    IPropertyObserver
    IPropertyContainer
    System.ICloneable
    System.Runtime.Serialization.ISerializable
    System.IDisposable
    Inherited Members
    PropertyContainer.Dispose()
    PropertyContainer.FullContainerName
    PropertyContainer.GetPropertyContainerByName(String)
    PropertyContainer.HistoryService
    PropertyContainer.IPropertyObserver.OnPropertyChanged(String, String)
    PropertyContainer.IPropertyObserver.OnPropertyChanging(String, String, Object)
    PropertyContainer.ISerializable.GetObjectData(SerializationInfo, StreamingContext)
    PropertyContainer.m_propertyObserver
    PropertyContainer.OnMeasureUnitsChanging(MeasureUnits, MeasureUnits)
    PropertyContainer.OnPropertyChanged(String)
    PropertyContainer.OnPropertyChanging(String, Object)
    PropertyContainer.PropertyObserber
    PropertyContainer.ProvideServiceReference(RuntimeTypeHandle)
    PropertyContainer.RecordPropertyChanged(String)
    PropertyContainer.UpdateServiceReferences(IServiceReferenceProvider)
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Syncfusion.Windows.Forms.Diagram
    Assembly: Syncfusion.Diagram.Base.dll
    Syntax
    public class RenderingStyle : PropertyContainer, IServiceReferenceHolder, IServiceReferenceProvider, IPropertyObserver, IPropertyContainer, ICloneable, ISerializable, IDisposable
    Remarks

    This style is used to set rendering properties for System.Drawing.Graphics during rendering.

    Constructors

    RenderingStyle()

    Initializes a new instance of the RenderingStyle class.

    Declaration
    public RenderingStyle()

    RenderingStyle(RenderingStyle)

    Initializes a new instance of the RenderingStyle class.

    Declaration
    public RenderingStyle(RenderingStyle src)
    Parameters
    Type Name Description
    RenderingStyle src

    The SRC.

    RenderingStyle(SerializationInfo, StreamingContext)

    Initializes a new instance of the RenderingStyle class.

    Declaration
    protected RenderingStyle(SerializationInfo info, StreamingContext context)
    Parameters
    Type Name Description
    System.Runtime.Serialization.SerializationInfo info

    The info.

    System.Runtime.Serialization.StreamingContext context

    The context.

    Properties

    InheritContainerMeasureUnits

    Gets or sets a value indicating whether current instance inherit container measure units.

    Declaration
    public override bool InheritContainerMeasureUnits { get; set; }
    Property Value
    Type Description
    System.Boolean

    true if current instance inherit container measure units; otherwise, false.

    Overrides
    PropertyContainer.InheritContainerMeasureUnits

    InterpolationMode

    Gets or sets how data is interpolated between endpoints.

    Declaration
    public InterpolationMode InterpolationMode { get; set; }
    Property Value
    Type
    System.Drawing.Drawing2D.InterpolationMode

    MeasureUnit

    Gets or sets the measure unit.

    Declaration
    public override MeasureUnits MeasureUnit { get; set; }
    Property Value
    Type Description
    MeasureUnits

    The measure unit.

    Overrides
    PropertyContainer.MeasureUnit

    SmoothingMode

    Gets or sets smoothing (antialiasing) to lines and curves and the edges of filled areas.

    Declaration
    public SmoothingMode SmoothingMode { get; set; }
    Property Value
    Type
    System.Drawing.Drawing2D.SmoothingMode

    TextRenderingHint

    Gets or sets text rendering mode.

    Declaration
    public TextRenderingHint TextRenderingHint { get; set; }
    Property Value
    Type
    System.Drawing.Text.TextRenderingHint

    Methods

    ApplySettings(Graphics)

    Applies the rendering style to a Graphics context object.

    Declaration
    public virtual void ApplySettings(Graphics grfx)
    Parameters
    Type Name Description
    System.Drawing.Graphics grfx

    Graphics context object to apply rendering style to.

    Clone()

    Creates a new object that is a copy of the current instance.

    Declaration
    public override object Clone()
    Returns
    Type Description
    System.Object

    A new object that is a copy of this instance.

    Overrides
    PropertyContainer.Clone()

    GetObjectData(SerializationInfo, StreamingContext)

    Populates a System.Runtime.Serialization.SerializationInfo with the data needed to serialize the target object.

    Declaration
    protected override void GetObjectData(SerializationInfo info, StreamingContext context)
    Parameters
    Type Name Description
    System.Runtime.Serialization.SerializationInfo info

    The System.Runtime.Serialization.SerializationInfo to populate with data.

    System.Runtime.Serialization.StreamingContext context

    The destination (see System.Runtime.Serialization.StreamingContext) for this serialization.

    Overrides
    PropertyContainer.GetObjectData(SerializationInfo, StreamingContext)
    Exceptions
    Type Condition
    System.Security.SecurityException

    The caller does not have the required permission.

    GetPropertyContainerName()

    Gets the name of the property container.

    Declaration
    protected override string GetPropertyContainerName()
    Returns
    Type Description
    System.String

    Property container name.

    Overrides
    PropertyContainer.GetPropertyContainerName()

    Implements

    IServiceReferenceHolder
    IServiceReferenceProvider
    IPropertyObserver
    IPropertyContainer
    System.ICloneable
    System.Runtime.Serialization.ISerializable
    System.IDisposable
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved