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
IsVisible Property
See Also 
Leadtools.Windows.Annotations Namespace > AnnObject Class : IsVisible Property



Gets or sets a value indicating whether the object is visible. This is a dependency property. Supported in Silverlight, Windows Phone 7

Syntax

Visual Basic (Declaration) 
Public Property IsVisible As Boolean
Visual Basic (Usage)Copy Code
Dim instance As AnnObject
Dim value As Boolean
 
instance.IsVisible = value
 
value = instance.IsVisible
C# 
public bool IsVisible {get; set;}
C++/CLI 
public:
property bool IsVisible {
   bool get();
   void set (    bool value);
}

Property Value

true if the object is visible, otherwise; false.

Example

Visual BasicCopy Code
Public Sub AnnObject_Visible(ByVal container As AnnContainer)
   For Each obj As AnnObject In container.Children
      If Not obj.IsVisible Then
         obj.IsVisible = True
      End If
   Next obj
End Sub
C#Copy Code
public void AnnObject_Visible(AnnContainer container)
{
   foreach (AnnObject obj in container.Children)
   {
      if (!obj.IsVisible)
         obj.IsVisible = true;
   }
}
SilverlightCSharpCopy Code
public void AnnObject_Visible(AnnContainer container)
{
   foreach (AnnObject obj in container.Children)
   {
      if (!obj.IsVisible)
         obj.IsVisible = true;
   }
}
SilverlightVBCopy Code
Public Sub AnnObject_Visible(ByVal container As AnnContainer)
   For Each obj As AnnObject In container.Children
      If (Not obj.IsVisible) Then
         obj.IsVisible = True
      End If
   Next obj
End Sub

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

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