Hide Table of Contents
Transparency Property (IModelDocExtension)

Gets and sets the transparency states for the specified display state setting.

.NET Syntax

Visual Basic (Declaration) 
Property Transparency( _
   ByVal Setting As DisplayStateSetting _
) As System.Object
Visual Basic (Usage) 
Dim instance As IModelDocExtension
Dim Setting As DisplayStateSetting
Dim value As System.Object
 
instance.Transparency(Setting) = value
 
value = instance.Transparency(Setting)
C# 
System.object Transparency( 
   DisplayStateSetting Setting
) {get; set;}
C++/CLI 
property System.Object^ Transparency {
   System.Object^ get(DisplayStateSetting^ Setting);
   void set (DisplayStateSetting^ Setting, System.Object^ value);
}

Parameters

Setting
IDisplayStateSetting

Property Value

One-dimensional array of transparency states as defined in swTransparencyState_e (see Remarks)

Example

Remarks

Before calling this method:

  1. Call IModelDocExtension::GetDisplayStateSetting to obtain an IDisplayStateSetting object.
  2. Call IDisplayStateSetting::Names or IDisplayStateSetting::ISetNames to specify the display states.
  3. Call IDisplayStateSetting::Entities or IDisplayStateSetting::ISetEntities to specify the components.
  4. Call IDisplayStateSetting::Option to specify the display state scope of the setting.
  5. Specify the Setting parameter using the IDisplayStateSetting object.

Each transparency state in the array returned by this method maps to a component in a display state. The size of the returned array is (IDisplayStateSetting::GetEntityCount X IDisplayStateSetting::GetNameCount).

The returned array stores transparency states (TS) for N components in M display states as follows:

Component1 DisplayState1 TS, Component1 DisplayState2 TS, ..., Component1 DisplayStateM TS,

Component2 DisplayState1 TS, Component2 DisplayState2 TS, ..., Component2 DisplayStateM TS,

...,

ComponentN DisplayState1 TS, ComponentN DisplayState2 TS, ..., ComponentN DisplayStateM TS

See Also

Availability

SOLIDWORKS 2012 FCS, Revision Number 20.0


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:   Transparency Property (IModelDocExtension)
*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) 2015 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.