Defines an annotation point object.
Object Model
Syntax
Example
This example adds a new point object to a container.
Visual Basic | Copy Code |
---|
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
container.Objects.Add(point)
viewer.Invalidate(point.InvalidRectangle)
MessageBox.Show("Picture")
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 |
C# | Copy Code |
---|
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"); } |
Remarks
Inheritance Hierarchy
Requirements
Target Platforms: Microsoft .NET Framework 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family
See Also