Leadtools.Annotations Namespace : AnnFreehandDrawDesigner Class |
[SerializableAttribute()] public class AnnFreehandDrawDesigner : AnnDrawDesigner
'Declaration <SerializableAttribute()> Public Class AnnFreehandDrawDesigner Inherits AnnDrawDesigner
'Usage Dim instance As AnnFreehandDrawDesigner
public sealed class AnnFreehandDrawDesigner : AnnDrawDesigner
function Leadtools.Annotations.AnnFreehandDrawDesigner()
[SerializableAttribute()] public ref class AnnFreehandDrawDesigner : public AnnDrawDesigner
Public Function AnnFreehandDrawDesigner_AnnFreehandDrawDesigner(ByVal viewer As RasterImageViewer, ByVal container As AnnContainer) As AnnFreehandDrawDesigner ' start a new freehand draw designer Dim freehandDrawDesigner As AnnFreehandDrawDesigner = New AnnFreehandDrawDesigner() ' set up the object template (a 2 pixels-wide polyline) Dim polylineObject As AnnPolylineObject = New AnnPolylineObject() polylineObject.Pen = New AnnPen(Color.Red, New AnnLength(2, AnnUnit.Pixel)) ' set up the spacing of the freehand designer freehandDrawDesigner.Spacing = 2 ' initialize the rest of the designer freehandDrawDesigner.ObjectTemplate = polylineObject freehandDrawDesigner.Owner = viewer freehandDrawDesigner.ClipCursor = True freehandDrawDesigner.Container = container Return freehandDrawDesigner End Function
public AnnFreehandDrawDesigner AnnFreehandDrawDesigner_AnnFreehandDrawDesigner(RasterImageViewer viewer, AnnContainer container) { // start a new freehand draw designer AnnFreehandDrawDesigner freehandDrawDesigner = new AnnFreehandDrawDesigner(); // set up the object template (a 2 pixels-wide polyline) AnnPolylineObject polylineObject = new AnnPolylineObject(); polylineObject.Pen = new AnnPen(Color.Red, new AnnLength(2, AnnUnit.Pixel)); // set up the spacing of the freehand designer freehandDrawDesigner.Spacing = 2; // initialize the rest of the designer freehandDrawDesigner.ObjectTemplate = polylineObject; freehandDrawDesigner.Owner = viewer; freehandDrawDesigner.ClipCursor = true; freehandDrawDesigner.Container = container; return freehandDrawDesigner; }
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2