Defines an annotation freehand hot spot object.
Object Model
Syntax
Example
This example creates a freehand hotspot object.
Visual Basic | Copy Code |
---|
Private Sub AnnFreehandHotspotObject_AnnFreehandHotspotObject(ByVal container As AnnContainer)
Dim freehandHotspot As AnnFreehandHotspotObject = New AnnFreehandHotspotObject()
freehandHotspot.Points.Add(New AnnPoint(100, 100, AnnUnit.Pixel))
freehandHotspot.Points.Add(New AnnPoint(200, 100, AnnUnit.Pixel))
freehandHotspot.Points.Add(New AnnPoint(200, 200, AnnUnit.Pixel))
freehandHotspot.Points.Add(New AnnPoint(100, 300, AnnUnit.Pixel))
container.Objects.Add(freehandHotspot)
End Sub |
C# | Copy Code |
---|
private void AnnFreehandHotspotObject_AnnFreehandHotspotObject(AnnContainer container) { AnnFreehandHotspotObject freehandHotspot = new AnnFreehandHotspotObject(); freehandHotspot.Points.Add(new AnnPoint(100, 100, AnnUnit.Pixel)); freehandHotspot.Points.Add(new AnnPoint(200, 100, AnnUnit.Pixel)); freehandHotspot.Points.Add(new AnnPoint(200, 200, AnnUnit.Pixel)); freehandHotspot.Points.Add(new AnnPoint(100, 300, AnnUnit.Pixel)); container.Objects.Add(freehandHotspot); } |
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