Leadtools.Annotations Namespace : AnnPointObject Class |
[SerializableAttribute()] public class AnnPointObject : AnnObject, IAnnPictureObject, System.ICloneable, System.IDisposable, System.Runtime.Serialization.ISerializable
'Declaration <SerializableAttribute()> Public Class AnnPointObject Inherits AnnObject Implements IAnnPictureObject, System.ICloneable, System.IDisposable, System.Runtime.Serialization.ISerializable
'Usage Dim instance As AnnPointObject
public sealed class AnnPointObject : IAnnPictureObject, System.ICloneable, IClosable //In WinRT the IDisposable interface is replaced by IClosable, ~Remove~
function Leadtools.Annotations.AnnPointObject()
[SerializableAttribute()] public ref class AnnPointObject : public AnnObject, IAnnPictureObject, System.ICloneable, System.IDisposable, System.Runtime.Serialization.ISerializable
This class implements the IAnnPictureObject interface and accesses the IAnnPictureObject.Picture property that handles the picture associated with the annotation object.
For more information, refer to Using Pictures in Annotation Objects
For more information about the point annotation object refer to AnnPointObject. For more information about the automated point annotation object, refer to Annotation Objects - Automated Features and Automated Annotations - Point Tab.
Private Sub AnnPointObject_AnnPointObject(ByVal viewer As RasterImageViewer, ByVal container As AnnContainer) Dim point As AnnPointObject = New AnnPointObject() point.CenterPoint = New AnnPoint(100, 100, AnnUnit.Pixel) point.ShowPicture = True ' default picture, no need to change anything container.Objects.Add(point) viewer.Invalidate(point.InvalidRectangle) MessageBox.Show("Picture") ' show with a radius point.Radius = New AnnLength(16, AnnUnit.Pixel) point.Pen = New AnnPen(Color.Red, New AnnLength(1, AnnUnit.Pixel)) point.ShowPicture = False viewer.Invalidate(point.InvalidRectangle) MessageBox.Show("No picture") End Sub
private void AnnPointObject_AnnPointObject(RasterImageViewer viewer, AnnContainer container) { AnnPointObject point = new AnnPointObject(); point.CenterPoint = new AnnPoint(100, 100, AnnUnit.Pixel); point.ShowPicture = true; // default picture, no need to change anything container.Objects.Add(point); viewer.Invalidate(point.InvalidRectangle); MessageBox.Show("Picture"); // show with a radius point.Radius = new AnnLength(16, AnnUnit.Pixel); point.Pen = new AnnPen(Color.Red, new AnnLength(1, AnnUnit.Pixel)); point.ShowPicture = false; viewer.Invalidate(point.InvalidRectangle); MessageBox.Show("No picture"); }
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