Hide Table of Contents
DisplayMode Property (IModelDocExtension)

Gets and sets the display modes for the specified display state setting.

.NET Syntax

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

Parameters

Setting
IDisplayStateSetting

Property Value

One-dimensional array of display modes as defined in swDisplayMode_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 display mode 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 display modes (DM) for N components in M display states as follows:

Component1 DisplayState1 DM, Component1 DisplayState2 DM, ..., Component1 DisplayStateM DM,

Component2 DisplayState1 DM, Component2 DisplayState2 DM, ..., Component2 DisplayStateM DM,

...,

ComponentN DisplayState1 DM, ComponentN DisplayState2 DM, ..., ComponentN DisplayStateM DM

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:   DisplayMode 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) 2014 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.