This class extends the AnnRectangleDrawDesigner class to provide functionality for drawing an AnnRichTextObject on an annotation container.
[SerializableAttribute()]public class AnnRichTextDrawDesigner : Leadtools.Annotations.AnnRectangleDrawDesigner
<SerializableAttribute()>Public Class AnnRichTextDrawDesignerInherits Leadtools.Annotations.AnnRectangleDrawDesigner
[SerializableAttribute()]public ref class AnnRichTextDrawDesigner : public Leadtools.Annotations.AnnRectangleDrawDesigner
For a complete example on how to use annotation draw and edit designers, refer to AnnDesigner.
This example initializes a new designer to draw rich text objects.
using Leadtools;using Leadtools.Annotations;using Leadtools.Codecs;using Leadtools.WinForms;public AnnRichTextDrawDesigner AnnRichTextDrawDesigner_AnnRichTextDrawDesigner(RasterImageViewer viewer, AnnContainer container){// start a new rich text draw designerAnnRichTextDrawDesigner richTextDrawDesigner = new AnnRichTextDrawDesigner();// set up the object template (the rich text object)AnnRichTextObject richTextObject = new AnnRichTextObject();richTextObject.Pen = null;richTextObject.Brush = null;// set up the default text to be usedrichTextDrawDesigner.DefaultRtf = // This is RTF text that is equals to LEADTOOLS in bold red Arial@"{\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\fnil\fcharset0 Arial;}" +@"{\f1\fnil\fcharset0 Microsoft Sans Serif;}}{\colortbl ;\red255\green0\blue0;}" +@"\viewkind4\uc1\pard\cf1\lang9\b\i\fs22 LEADTOOLS\cf0\lang1033\b0\i0\f1\fs17\par}";// initialize the rest of the designerrichTextDrawDesigner.ObjectTemplate = richTextObject;richTextDrawDesigner.Owner = viewer;richTextDrawDesigner.ClipCursor = true;richTextDrawDesigner.Container = container;return richTextDrawDesigner;}
Imports LeadtoolsImports Leadtools.AnnotationsImports Leadtools.CodecsImports Leadtools.WinFormsPublic Function AnnRichTextDrawDesigner_AnnRichTextDrawDesigner(ByVal viewer As RasterImageViewer, ByVal container As AnnContainer) As AnnRichTextDrawDesigner' start a new rich text draw designerDim richTextDrawDesigner As New AnnRichTextDrawDesigner()' set up the object template (the rich text object)Dim richTextObject As New AnnRichTextObject()richTextObject.Pen = NothingrichTextObject.Brush = Nothing' set up the default text to be used' This is RTF text that is equals to LEADTOOLS in bold red ArialrichTextDrawDesigner.DefaultRtf ="{\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\fnil\fcharset0 Arial;}" +"{\f1\fnil\fcharset0 Microsoft Sans Serif;}}{\colortbl ;\red255\green0\blue0;}" +"\viewkind4\uc1\pard\cf1\lang9\b\i\fs22 LEADTOOLS\cf0\lang1033\b0\i0\f1\fs17\par}"' initialize the rest of the designerrichTextDrawDesigner.ObjectTemplate = richTextObjectrichTextDrawDesigner.Owner = viewerrichTextDrawDesigner.ClipCursor = TruerichTextDrawDesigner.Container = containerReturn richTextDrawDesignerEnd Function
|
Products |
Support |
Feedback: AnnRichTextDrawDesigner Class - Leadtools.Annotations |
Introduction |
Help Version 19.0.2017.6.20
|

Raster .NET | C API | C++ Class Library | JavaScript HTML5
Document .NET | C API | C++ Class Library | JavaScript HTML5
Medical .NET | C API | C++ Class Library | JavaScript HTML5
Medical Web Viewer .NET
Your email has been sent to support! Someone should be in touch! If your matter is urgent please come back into chat.
Chat Hours:
Monday - Friday, 8:30am to 6pm ET
Thank you for your feedback!
Please fill out the form again to start a new chat.
All agents are currently offline.
Chat Hours:
Monday - Friday
8:30AM - 6PM EST
To contact us please fill out this form and we will contact you via email.