/// <summary>Creates a new renderer used to draw text to an uncompressed bitmap.</summary> /// <returns>Returns a new text rendering object.</returns> public WinRT.Interop.Graphics.ITextRenderer CreateTextRenderer() { // Create the text renderer. var textRenderer = new DotNetTextRenderer(); // Notify the system that a new text renderer was created. // Note: The CoronaPanel listens for this event so that it can add handlers to the text renderer's events. if (this.CreatedTextRenderer != null) { this.CreatedTextRenderer.Invoke(this, new DotNetTextRendererEventArgs(textRenderer)); } // Return the newly created text renderer. return(textRenderer); }
/// <summary>Creates a new event arguments object with the given text renderer reference.</summary> /// <param name="textRenderer"> /// <para>Reference to the text renderer that is involved with the event.</para> /// <para>Cannot be null or else an exception will be thrown.</para> /// </param> public DotNetTextRendererEventArgs(DotNetTextRenderer textRenderer) { fTextRenderer = textRenderer; }