Hide Table of Contents
Visible Property (IAnnotation)

Gets or sets the visibility state of this annotation.

.NET Syntax

Visual Basic (Declaration) 
Property Visible As Integer
Visual Basic (Usage) 
Dim instance As IAnnotation
Dim value As Integer
 
instance.Visible = value
 
value = instance.Visible
C# 
int Visible {get; set;}
C++/CLI 
property int Visible {
   int get();
   void set (int value);
}

Return Value

Visibility state as defined in swAnnotationVisibilityState_e

Example

Remarks

There are several reasons why an annotation might or might not be visible on the screen.

This property determines whether an annotation has been individually displayed or hidden if you selected and specifically hid the annotation or if you selected and specifically hid the dimensions of a feature. This property cannot determine whether an annotation is hidden if it is on a layer that is hidden (all annotations of this type are hidden) or if the feature that owns it is suppressed. Therefore, even though this method indicates that an annotation is visible, it might not necessarily be visible on the screen.

If an annotation's visibility is set to swAnnotationHalfHidden, then that annotation is in a half-hidden state, which is not a permanent state. For example, during a Hide/Show Annotations operation in a drawing, a half-hidden annotation is displayed in gray if the interactive user selects to show all annotations. Any annotation set to swAnnotationHalfHidden is hidden when the interactive user finishes using Hide/Show Annotations.


When you use this property to change the visibility of an annotation, you also cause changes to the visible model. To see those changes, redraw the graphics window using IModelDoc2::GraphicsRedraw2.

See Also

Availability

SolidWorks 99 SP05 datecode 1999313


Provide feedback on this topic

SOLIDWORKS welcomes your feedback concerning the presentation, accuracy, and thoroughness of the documentation. Use the form below to send your comments and suggestions about this topic directly to our documentation team. The documentation team cannot answer technical support questions. Click here for information about technical support.

* Required

 
*Email:  
Subject:   Feedback on Help Topics
Page:   Visible Property (IAnnotation)
*Comment:  
*   I acknowledge I have read and I hereby accept the privacy policy under which my Personal Data will be used by Dassault Systèmes

Print Topic

Select the scope of content to print:

x

We have detected you are using a browser version older than Internet Explorer 7. For optimized display, we suggest upgrading your browser to Internet Explorer 7 or newer.

 Never show this message again
x

Web Help Content Version: API Help (English only) 2012 SP05

To disable Web help from within SOLIDWORKS and use local help instead, click Help > Use SOLIDWORKS Web Help.

To report problems encountered with the Web help interface and search, contact your local support representative. To provide feedback on individual help topics, use the “Feedback on this topic” link on the individual topic page.