Class RenderingStyle
Encapsulates the rendering properties of an object.
Implements
Inherited Members
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 |
|
Overrides
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
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
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
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. |