LEADTOOLS Annotations for WPF and Silverlight (Leadtools.Windows.Annotations assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.31
AnnHiliteObject Class
See Also  Members  
Leadtools.Windows.Annotations Namespace : AnnHiliteObject Class



The AnnHiliteObject Class supports WPF/Silverlight.

The AnnHiliteObject Class is available in LEADTOOLS Document and Medical Imaging toolkits.

Defines an annotation hilite object. Supported in Silverlight, Windows Phone 7

Object Model

AnnHiliteObject Class

Syntax

Visual Basic (Declaration) 
Public Class AnnHiliteObject 
   Inherits AnnRectangleObject
   Implements IAnnHeaderIAnnObjectIAnnRectangle 
Visual Basic (Usage)Copy Code
Dim instance As AnnHiliteObject
C# 
public class AnnHiliteObject : AnnRectangleObject, IAnnHeaderIAnnObjectIAnnRectangle  
C++/CLI 
public ref class AnnHiliteObject : public AnnRectangleObject, IAnnHeaderIAnnObjectIAnnRectangle  

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.Rect = New Rect(100, 200, 400, 600)
   hilite.Fill = Colors.Yellow
   container.Children.Add(hilite)
End Sub
C#Copy Code
private void AnnHiliteObject_AnnHiliteObject(AnnContainer container)
{
   AnnHiliteObject hilite = new AnnHiliteObject();
   hilite.Rect = new Rect(100, 200, 400, 600);
   hilite.Fill = Colors.Yellow;
   container.Children.Add(hilite);
}
SilverlightCSharpCopy Code
private void AnnHiliteObject_AnnHiliteObject(AnnContainer container)
{
   AnnHiliteObject hilite = new AnnHiliteObject();
   hilite.Rect = new Rect(100, 200, 400, 600);
   hilite.Fill = Colors.Yellow;
   container.Children.Add(hilite);
}
SilverlightVBCopy Code
Private Sub AnnHiliteObject_AnnHiliteObject(ByVal container As AnnContainer)
   Dim hilite As AnnHiliteObject = New AnnHiliteObject()
   hilite.Rect = New Rect(100, 200, 400, 600)
   hilite.Fill = Colors.Yellow
   container.Children.Add(hilite)
End Sub
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
         Leadtools.Windows.Annotations.AnnObject
            Leadtools.Windows.Annotations.AnnRectangleObject
               Leadtools.Windows.Annotations.AnnHiliteObject

Requirements

Target Platforms: Silverlight 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7, MAC OS/X (Intel Only)

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.