Leadtools.Annotations Requires Document/Medical product license | Send comments on this topic. | Back to Introduction - All Topics | Help Version 15.10.31
Visible Property
See Also  Example
Leadtools.Annotations Namespace > AnnObject Class : Visible Property




Gets or sets a value indicating whether the AnnObject is visible.

Syntax

Visual Basic (Declaration) 
Public Overridable Property Visible As Boolean
Visual Basic (Usage)Copy Code
Dim instance As AnnObject
Dim value As Boolean
 
instance.Visible = value
 
value = instance.Visible
C# 
public virtual bool Visible {get; set;}
Managed Extensions for C++ 
public: __property virtual bool get_Visible();
public: __property virtual void set_Visible( 
   bool value
);
C++/CLI 
public:
virtual property bool Visible {
   bool get();
   void set (bool value);
}

Return Value

true if the annotation object is visible; otherwise, false.
The default is true.

Example

This method makes all objects visible.

Visual BasicCopy Code
Public Sub AnnObject_Visible(ByVal container As AnnContainer)
   For Each obj As AnnObject In container.Objects
      If (Not obj.Visible) Then
         obj.Visible = True
      End If
   Next obj
End Sub
C#Copy Code
public void AnnObject_Visible(AnnContainer container) 

   foreach(AnnObject obj in container.Objects) 
   { 
      if(!obj.Visible) 
         obj.Visible = true; 
   } 
}

Remarks

When an object is visible, it is drawn whenever its parent container (or group) is drawn. If the object is invisible, it will not be drawn.

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

Leadtools.Annotations requires a Document or Medical toolkit license and unlock key. For more information, refer to: Raster Pro/Document/Medical Features