←Select platform

AnnHiliteObject Class

Summary

Defines an annotation hilite object.

Syntax

C#
VB
C++
[SerializableAttribute()] 
public class AnnHiliteObject : AnnRectangleObject 
  
<SerializableAttribute()> 
Public Class AnnHiliteObject  
   Inherits Leadtools.Annotations.AnnRectangleObject 
   Implements System.ICloneable, System.IDisposable, System.Runtime.Serialization.ISerializable  
[SerializableAttribute()] 
public ref class AnnHiliteObject : public Leadtools.Annotations.AnnRectangleObject, System.ICloneable, System.IDisposable, System.Runtime.Serialization.ISerializable   

Remarks

The hilite annotation object is a simple rectangle that has a bounding rectangle, no pen and no brush. Although it does not have a pen or brush, it does have a color value that is used to fill this bounding area. By default the hilite object uses a yellow color.

For more information about the highlight annotation object refer to AnnHiliteObject (Deprecated). For more information about the automated highlight annotation object, refer to Annotation Objects - Automated Features (Deprecated).

Example

This example creates a hilite object.

C#
VB
using Leadtools; 
using Leadtools.Annotations; 
using Leadtools.Codecs; 
using Leadtools.WinForms; 
 
private void AnnHiliteObject_AnnHiliteObject(AnnContainer container) 
{ 
   AnnHiliteObject hilite = new AnnHiliteObject(); 
   hilite.Bounds = new AnnRectangle(100, 200, 400, 600, AnnUnit.Pixel); 
   hilite.HiliteColor = Color.Yellow; 
   container.Objects.Add(hilite); 
} 
Imports Leadtools 
Imports Leadtools.Annotations 
Imports Leadtools.Codecs 
Imports Leadtools.WinForms 
 
Private Sub AnnHiliteObject_AnnHiliteObject(ByVal container As AnnContainer) 
   Dim hilite As AnnHiliteObject = New AnnHiliteObject() 
   hilite.Bounds = New AnnRectangle(100, 200, 400, 600, AnnUnit.Pixel) 
   hilite.HiliteColor = Color.Yellow 
   container.Objects.Add(hilite) 
End Sub 

Requirements

Target Platforms

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Annotations Assembly