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 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family
See Also