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

Invalidate Method (AnnObject)

Example 





Invalidates the whole area of this object and signals the container to redraw the control. .NET support Silverlight support
Syntax
public virtual void Invalidate()
'Declaration
 
Public Overridable Sub Invalidate() 
'Usage
 
Dim instance As AnnObject
 
instance.Invalidate()
public virtual void Invalidate()
 function Leadtools.Windows.Annotations.AnnObject.Invalidate()
public:
virtual void Invalidate(); 
Example
Copy CodeCopy Code  
Private Sub InvalidateExample(ByVal container As AnnContainer)
   For Each obj As AnnObject In container.Children
      If TypeOf (obj) Is AnnLineObject Then
         obj.Stroke = Colors.Red
         obj.Invalidate()
      End If
   Next
End Sub
private void InvalidateExample(AnnContainer container)
{
   foreach(AnnObject obj in container.Children)
   {
      if(obj is AnnLineObject)
      {
         obj.Stroke = Colors.Red;
         obj.Invalidate();
      }
   }
}
private void InvalidateExample(AnnContainer container)
{
   foreach(AnnObject obj in container.Children)
   {
      if(obj is AnnLineObject)
      {
         obj.Stroke = Colors.Red;
         obj.Invalidate();
      }
   }
}
Private Sub InvalidateExample(ByVal container As AnnContainer)
   For Each obj As AnnObject In container.Children
      If TypeOf obj Is AnnLineObject Then
         obj.Stroke = Colors.Red
         obj.Invalidate()
      End If
   Next obj
End Sub
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

AnnObject Class
AnnObject Members

 

 


Products | Support | Contact Us | Copyright Notices

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