Table of Contents

Method CreateRef

Namespace
PaintDotNet.DirectWrite
Assembly
PaintDotNet.Windows.Core.dll

CreateRef()

Creates a reference to the global IDirectWriteFactory instance.

public static IDirectWriteFactory CreateRef()

Returns

IDirectWriteFactory

Remarks

You usually won't need to use this method. Instead, in your plugin, retrieve it as a service with this.Services.GetService<IDirectWriteFactory>().
For effect plugins it is also available through this.Environment.DirectWriteFactory.