LEADTOOLS Annotations for WPF and Silverlight (Leadtools.Windows.Annotations assembly)
LEAD Technologies, Inc

AnnHiliteObject Class

Example 





Members 
Defines an annotation hilite object. .NET support Silverlight support
Object Model
AnnHiliteObject ClassAnnBrush ClassAnnBrush Class
Syntax
public class AnnHiliteObject : AnnRectangleObject, IAnnHeaderIAnnObjectIAnnRectangle  
'Declaration
 
Public Class AnnHiliteObject 
   Inherits AnnRectangleObject
   Implements IAnnHeaderIAnnObjectIAnnRectangle 
'Usage
 
Dim instance As AnnHiliteObject
public sealed class AnnHiliteObject : IAnnHeaderIAnnObjectIAnnRectangle  
function Leadtools.Windows.Annotations.AnnHiliteObject()
public ref class AnnHiliteObject : public AnnRectangleObject, IAnnHeaderIAnnObjectIAnnRectangle  
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.

Example
Copy CodeCopy 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
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);
}
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);
}
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
<Window x:Class="WPFSamples.AnnHiliteObject"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="Leadtools.Windows.Annotations" Height="600" Width="800"
    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>
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

AnnHiliteObject Members
Leadtools.Windows.Annotations Namespace

 

 


Products | Support | Contact Us | Copyright Notices

© 2006-2012 All Rights Reserved. LEAD Technologies, Inc.