[]
        
(Showing Draft Content)

GrapeCity.Documents.DX.Direct2D.DrawingStateBlock

Class DrawingStateBlock

Namespace
GrapeCity.Documents.DX.Direct2D
Assembly
GcDocs.DX.Windows.dll

ID2D1DrawingStateBlock

[Guid("28506e39-ebf6-46a1-bb47-fd85565ab957")]
public class DrawingStateBlock : Resource, IDisposable, IUnknown
Inheritance
object
DrawingStateBlock
Implements
System.IDisposable
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()

Constructors

DrawingStateBlock(IntPtr)

Initializes a new instance of the DrawingStateBlock class.

public DrawingStateBlock(IntPtr nativePtr)

Parameters

nativePtr System.IntPtr

The native pointer.

Properties

Description

GetDescription / SetDescription

public DrawingStateDescription Description { get; set; }

Property Value

DrawingStateDescription

Methods

Create(Factory, DrawingStateDescription)

Creates an DrawingStateBlock that can be used with the {{SaveDrawingState}} and {{RestoreDrawingState}} methods of a render target.

public static DrawingStateBlock Create(Factory factory, DrawingStateDescription drawingStateDescription)

Parameters

factory Factory

an instance of Factory

drawingStateDescription DrawingStateDescription

A structure that contains antialiasing, transform, and tags information.

Returns

DrawingStateBlock

Create(Factory, RenderingParams)

Creates an DrawingStateBlock that can be used with the {{SaveDrawingState}} and {{RestoreDrawingState}} methods of a render target.

public static DrawingStateBlock Create(Factory factory, RenderingParams textRenderingParams)

Parameters

factory Factory

an instance of Factory

textRenderingParams RenderingParams

Optional text parameters that indicate how text should be rendered.

Returns

DrawingStateBlock

Create(Factory, DrawingStateDescription?, RenderingParams)

Creates an DrawingStateBlock that can be used with the {{SaveDrawingState}} and {{RestoreDrawingState}} methods of a render target.

public static DrawingStateBlock Create(Factory factory, DrawingStateDescription? drawingStateDescription, RenderingParams textRenderingParams)

Parameters

factory Factory

an instance of Factory

drawingStateDescription DrawingStateDescription?

A structure that contains antialiasing, transform, and tags information.

textRenderingParams RenderingParams

Optional text parameters that indicate how text should be rendered.

Returns

DrawingStateBlock

Create(Factory)

Creates an DrawingStateBlock that can be used with the {{SaveDrawingState}} and {{RestoreDrawingState}} methods of a render target.

public static DrawingStateBlock Create(Factory factory)

Parameters

factory Factory

an instance of Factory

Returns

DrawingStateBlock

GetDescription(out DrawingStateDescription)

void ID2D1DrawingStateBlock::GetDescription([Out] D2D1_DRAWING_STATE_DESCRIPTION* stateDescription)

public void GetDescription(out DrawingStateDescription stateDescription)

Parameters

stateDescription DrawingStateDescription

GetTextRenderingParams()

void ID2D1DrawingStateBlock::GetTextRenderingParams([Out, Optional] IDWriteRenderingParams** textRenderingParams)

public RenderingParams GetTextRenderingParams()

Returns

RenderingParams

SetDescription(ref DrawingStateDescription)

void ID2D1DrawingStateBlock::SetDescription([In] const D2D1_DRAWING_STATE_DESCRIPTION* stateDescription)

public void SetDescription(ref DrawingStateDescription stateDescription)

Parameters

stateDescription DrawingStateDescription

SetTextRenderingParams(RenderingParams)

void ID2D1DrawingStateBlock::SetTextRenderingParams([In, Optional] IDWriteRenderingParams* textRenderingParams)

public void SetTextRenderingParams(RenderingParams textRenderingParams)

Parameters

textRenderingParams RenderingParams

Operators

explicit operator DrawingStateBlock(IntPtr)

Performs an explicit conversion from System.IntPtr to DrawingStateBlock.

public static explicit operator DrawingStateBlock(IntPtr nativePointer)

Parameters

nativePointer System.IntPtr

Returns

DrawingStateBlock