Leadtools.Windows.Annotations Requires Document/Medical license. | Send comments on this topic. | Back to Introduction - All Topics | Help Version 16.5.9.25
AnnHiliteObject Class
See Also  Members   Example 
Leadtools.Windows.Annotations Namespace : AnnHiliteObject Class





Defines an annotation hilite object.

Object Model



Syntax

Visual Basic (Declaration) 
<SerializableAttribute()>
Public Class AnnHiliteObject 
   Inherits AnnRectangleObject
Visual Basic (Usage)Copy Code
Dim instance As AnnHiliteObject
C# 
[SerializableAttribute()]
public class AnnHiliteObject : AnnRectangleObject 
C++/CLI 
[SerializableAttribute()]
public ref class AnnHiliteObject : public AnnRectangleObject 
XAML Object Element Usage 

<AnnHiliteObject .../>

XAML Object Element Usage 

<AnnHiliteObject .../>

Example

This example creates a hilite object.

Visual BasicCopy Code
Private Sub AnnHiliteObject_AnnHiliteObject(ByVal container As AnnContainer)
   Dim hilite As AnnHiliteObject = New AnnHiliteObject()
   hilite.Left = 100
   hilite.Top = 200
   hilite.Width = 400
   hilite.Height = 600
   hilite.HiliteColor = Colors.Yellow
   container.Children.Add(hilite)
End Sub
C#Copy Code
private void AnnHiliteObject_AnnHiliteObject(AnnContainer container) 

   AnnHiliteObject hilite = new AnnHiliteObject(); 
   hilite.Left = 100; 
   hilite.Top = 200; 
   hilite.Width = 400; 
   hilite.Height = 600; 
   hilite.HiliteColor = Colors.Yellow; 
   container.Children.Add(hilite); 
}
XAMLCopy Code
<Window x:Class="WPFSamples.AnnHiliteObject" Title="Leadtools.Windows.Annotations" Height="600" Width="800" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:Leadtools_Windows_Annotations="clr-namespace:Leadtools.Windows.Annotations;assembly=Leadtools.Windows.Annotations"> 
  <Leadtools_Windows_Annotations:AnnHiliteObject Left="100" Top="100" Width="200" Height="100" HiliteColor="#FF0000" Header="Hilite Object" /> 
</Window>

Remarks

The hilite annotation object is a simple rectangle that has a bounding rectangle, no stroke and no fill. Although it does not have a stroke or fill, 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 for WPF. For more information about the automated highlight annotation object, refer to WPF Annotation Objects - Automated Features.

Inheritance Hierarchy

System.Object
   System.Windows.Threading.DispatcherObject
      System.Windows.DependencyObject
         System.Windows.Media.Visual
            System.Windows.UIElement
               System.Windows.FrameworkElement
                  Leadtools.Windows.Annotations.AnnObjectBase
                     Leadtools.Windows.Annotations.AnnRectangleObject
                        Leadtools.Windows.Annotations.AnnHiliteObject

Requirements

Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Vista, and Windows Server 2003 family

See Also

AnnHiliteObject requires a Document/Medical product license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features and Unlocking Special LEAD Features.