Hide Table of Contents
SetSelectionColor Method (IPropertyManagerPageSelectionbox)

Sets the color for selections made in this selection box on the PropertyManager page.

.NET Syntax

Visual Basic (Declaration) 
Function SetSelectionColor( _
   ByVal Special As System.Boolean, _
   ByVal Color As System.Integer _
) As System.Boolean
Visual Basic (Usage) 
Dim instance As IPropertyManagerPageSelectionbox
Dim Special As System.Boolean
Dim Color As System.Integer
Dim value As System.Boolean
 
value = instance.SetSelectionColor(Special, Color)
C# 
System.bool SetSelectionColor( 
   System.bool Special,
   System.int Color
)
C++/CLI 
System.bool SetSelectionColor( 
&   System.bool Special,
&   System.int Color
) 

Parameters

Special

True uses a specific color for selections, false does not

Color
Color to use for selections as defined by the swSystemColors; values from swUserPreferenceIntegerValue_e  (see Remarks)

Remarks

You can only use this method to set properties on the PropertyManager page before it is displayed or while it is closed. See IPropertyManagerPage2::Show2 and IPropertyManagerPage2::Close.

By default, the selection box created uses the default selection color. You can use this method to override that default behavior. When you specify a specific selection color by setting the Special argument to True and specifying a color in the Color argument, the resulting selection box has a narrow color bar next to the selection box that is the same color as any faces selected in the graphics area.

The colors that SOLIDWORKS internal dialogs typically use for selection colors are:

  • swSystemColorsSelectedItem1

  • swSystemColorsSelectedItem2

  • swSystemColorsSelectedItem3

Although you should use the typical selection colors for a consistent look-and-feel among your PropertyManager and SOLIDWORKS PropertyManager pages, you can specify any of the following values:

  • swSystemColorsViewportBackground

  • swSystemColorsTopGradientColor

  • swSystemColorsBottomGradientColor

  • swSystemColorsDynamicHighlight

  • swSystemColorsHighlight

  • swSystemColorsSelectedFaceShaded

  • swSystemColorsDrawingsVisibleModelEdge

  • swSystemColorsDrawingsHiddenModelEdge

  • swSystemColorsDrawingsPaperBorder

  • swSystemColorsDrawingsPaperShadow

  • swSystemColorsImportedDrivingAnnotation

  • swSystemColorsImportedDrivenAnnotation

  • swSystemColorsSketchOverDefined

  • swSystemColorsSketchFullyDefined

  • swSystemColorsSketchUnderDefined

  • swSystemColorsSketchInvalidGeometry

  • swSystemColorsSketchNotSolved

  • swSystemColorsGridLinesMinor

  • swSystemColorsGridLinesMajor

  • swSystemColorsConstructionGeometry

  • swSystemColorsDanglingDimension

  • swSystemColorsText

  • swSystemColorsAssemblyEditPart

  • swSystemColorsAssemblyEditPartHiddenLines

  • swSystemColorsAssemblyNonEditPart

  • swSystemColorsInactiveEntity

  • swSystemColorsTemporaryGraphics

  • swSystemColorsTemporaryGraphicsShaded

  • swSystemColorsActiveSelectionListBox

  • swSystemColorsSurfacesOpenEdge

  • swSystemColorsTreeViewBackground

  • swSystemColorsShadedEdge

 

See Also

Availability

SOLIDWORKS 2001Plus SP4, Revision Number 10.4


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:   SetSelectionColor Method (IPropertyManagerPageSelectionbox)
*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) 2017 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.