AppearanceSettings

public static class AppearanceSettings
Provides static methods and properties to deal with the appearance of the application.

Properties

BlackWhiteSwitching

#Since v9.0
Mode where white objects are drawn black when on a light background and black objects are drawn white when on a dark background
public static bool BlackWhiteSwitching { get; set; }

CommandPromptBackgroundColor

#Since v5.0
Gets or sets the color of the command prompt background.
public static Color CommandPromptBackgroundColor { get; set; }

CommandPromptFontSize

#Since v7.0
Size of font used in command prompt (in points)
public static int CommandPromptFontSize { get; set; }

CommandPromptHypertextColor

#Since v5.0
Gets or sets the color of the command prompt hypertext.
public static Color CommandPromptHypertextColor { get; set; }

CommandPromptPosition

#Since v5.0
Gets or sets the command prompt position.
public static CommandPromptPosition CommandPromptPosition { get; set; }

CommandPromptTextColor

#Since v5.0
Gets or sets the color of the command prompt text.
public static Color CommandPromptTextColor { get; set; }

CrosshairColor

#Since v5.0
Gets or sets the color of the crosshair icon.
public static Color CrosshairColor { get; set; }

CrosshairsAlignedToScreen

#Since v9.0
Gets or sets a value that determines if the cross hairs are drawn horizontally and vertically on the screen (as if fixed to the camera) instead of running along the construction plane's x and y axes. When enabled, the cross hairs stay vertical and horizontal as the view is rotated, for example in a perspective viewport.
public static bool CrosshairsAlignedToScreen { get; set; }

CrosshairScreenLength

#Since v9.0
Gets or sets a value that determines the length, in pixels, of the cross hairs if they are visible.
public static double CrosshairScreenLength { get; set; }

CurrentLayerBackgroundColor

#Since v5.0
Gets or sets the color used by the layer manager dialog as the background color for the current layer.
public static Color CurrentLayerBackgroundColor { get; set; }

DefaultFontFaceName

#Since v5.0
Gets or sets the default font face name used in Rhino.
public static string DefaultFontFaceName { get; }

DefaultLayerColor

#Since v5.0
Gets or sets the default layer color.
public static Color DefaultLayerColor { get; set; }

DefaultObjectColor

#Since v5.0
Gets or sets the default color for new objects.
public static Color DefaultObjectColor { get; set; }

DirectionArrowIconHeadSize

#Since v8.0
length of direction arrowhead icon in pixels.
public static int DirectionArrowIconHeadSize { get; set; }

DirectionArrowIconShaftSize

#Since v8.0
length of direction arrow shaft icon in pixels.
public static int DirectionArrowIconShaftSize { get; set; }

EchoCommandsToHistoryWindow

#Since v5.0
Gets or sets a value that determines if command names are written to the history window.
public static bool EchoCommandsToHistoryWindow { get; set; }

EchoPromptsToHistoryWindow

#Since v5.0
Gets or sets a value that determines if prompt messages are written to the history window.
public static bool EchoPromptsToHistoryWindow { get; set; }

EditCandidateColor

#Since v6.0
Gets or sets the color of objects that are eligible to be edited.
public static Color EditCandidateColor { get; set; }

EffectiveHelpLanguageIdentifier

#Since v9.0
Gets the language identifier the Help system uses. This is HelpLanguageIdentifier when it has been set, otherwise LanguageIdentifier. Never returns zero.
public static int EffectiveHelpLanguageIdentifier { get; }

FeedbackColor

#Since v5.0
Gets or sets the feedback color.
public static Color FeedbackColor { get; set; }

FrameBackgroundColor

#Since v5.0
Gets or sets the background color of the frame.
public static Color FrameBackgroundColor { get; set; }

GridThickLineColor

#Since v5.0
Gets or sets the color of the thick line of the grid.
public static Color GridThickLineColor { get; set; }

GridThinLineColor

#Since v5.0
Gets or sets the color of the thin line of the grid.
public static Color GridThinLineColor { get; set; }

GridXAxisLineColor

#Since v5.0
Gets or sets the color of the X axis of the grid.
public static Color GridXAxisLineColor { get; set; }

GridYAxisLineColor

#Since v5.0
Gets or sets the color of the Y axis of the grid.
public static Color GridYAxisLineColor { get; set; }

GridZAxisLineColor

#Since v5.0
Gets or sets the color of the Z axis of the grid.
public static Color GridZAxisLineColor { get; set; }

HelpLanguageIdentifier

#Since v9.0
Gets or sets the language identifier used by the Help system (the Help panel, F1 context help and the online help web site). This is independent of LanguageIdentifier, which is the language used by the user interface. A value of zero, the default, means the Help follows the user interface language. See EffectiveHelpLanguageIdentifier for the identifier the Help system actually uses.
public static int HelpLanguageIdentifier { get; set; }

LanguageIdentifier

#Since v5.0
Gets or sets the language identifier.
public static int LanguageIdentifier { get; set; }

LockedObjectColor

#Since v5.0
color used to draw locked objects.
public static Color LockedObjectColor { get; set; }

PageviewPaperColor

#Since v5.0
Gets or sets the paper background. A rectangle is drawn into the background of page views to represent the printed area. The alpha portion of the color is used to draw the paper blended into the background
public static Color PageviewPaperColor { get; set; }

PreviousLanguageIdentifier

#Since v5.0
Gets or sets the previous language identifier.
public static int PreviousLanguageIdentifier { get; set; }

SelectedObjectColor

#Since v5.0
The color used to draw selected objects. The default is yellow, but this can be customized by the user.
public static Color SelectedObjectColor { get; set; }

SelectionWindowCrossingFillColor

#Since v7.0
Color used to fill selection crossing window
public static Color SelectionWindowCrossingFillColor { get; set; }

SelectionWindowCrossingStrokeColor

#Since v7.0
Color used to draw stroke for selection crossing window
public static Color SelectionWindowCrossingStrokeColor { get; set; }

SelectionWindowFillColor

#Since v7.0
Color used to fill selection window
public static Color SelectionWindowFillColor { get; set; }

SelectionWindowStrokeColor

#Since v7.0
Color used to draw stroke for selection window
public static Color SelectionWindowStrokeColor { get; set; }

ShowCrosshairs

#Since v5.0
Gets or sets a value that determines if cross hairs are visible.
public static bool ShowCrosshairs { get; set; }

ShowCursorWhenCrosshairsVisible

#Since v9.0
public static bool ShowCursorWhenCrosshairsVisible { get; set; }

ShowFullPathInTitleBar

#Since v5.0
Gets or sets a value that determines if the full path of the document is shown in the Rhino title bar.
public static bool ShowFullPathInTitleBar { get; set; }

ShowLayoutDropShadow

#Since v8.0
Display the drop shadow of layouts
public static bool ShowLayoutDropShadow { get; set; }

ShowOsnapBar

#Since v7.0
Shows or hides the object snap user interface.
public static bool ShowOsnapBar { get; set; }

ShowSelectionFilterBar

#Since v8.2
Shows or hides the selection filter user interface.
public static bool ShowSelectionFilterBar { get; set; }

ShowSideBar

#Since v6.0
Shows or hides the side bar user interface.
public static bool ShowSideBar { get; set; }

ShowStatusBar

#Since v7.0
Shows or hides the status bar user interface.
public static bool ShowStatusBar { get; set; }

ShowTitleBar

#Since v8.0
Shows or hides title bar.
public static bool ShowTitleBar { get; set; }

ShowViewportTitles

#Since v8.0
Shows or hides viewport titles.
public static bool ShowViewportTitles { get; set; }

TrackingColor

#Since v5.0
Gets or sets the tracking color.
public static Color TrackingColor { get; set; }

UsePaintColors

#Since v5.0
Gets or sets a value indicating if logical paint colors should be used.
public static bool UsePaintColors { get; }
obsoletecustom colors are always used

ViewportBackgroundColor

#Since v5.0
Gets or sets the viewport background color.
public static Color ViewportBackgroundColor { get; set; }

ViewportTabsVisibleAtStart

#Since v8.0
Display viewport tabs at start
public static bool ViewportTabsVisibleAtStart { get; set; }

WorldCoordIconXAxisColor

#Since v5.0
Gets or sets the color of the world coordinate X axis.
public static Color WorldCoordIconXAxisColor { get; set; }

WorldCoordIconYAxisColor

#Since v5.0
Gets or sets the color of the world coordinate Y axis.
public static Color WorldCoordIconYAxisColor { get; set; }

WorldCoordIconZAxisColor

#Since v5.0
Gets or sets the color of the world coordinate Z axis.
public static Color WorldCoordIconZAxisColor { get; set; }

Methods

DefaultPaintColor

#Since v8.0
Get a default paint color for Rhino. The current paint color may be different than the default
public static Color DefaultPaintColor(
whichColor,
The color to retrieve
darkMode
If true gets the default dark mode color otherwise return the default light mode color
)

DefaultPaintColor

#Since v7.0
Get a default paint color for Rhino. The current paint color may be different than the default
public static Color DefaultPaintColor(
whichColor
The color to retrieve
)

DefaultWidgetColor

#Since v8.0
Get a default widget color for Rhino. The current widget color may be different than the default
public static Color DefaultWidgetColor(
whichColor
The color to retrieve
)
A .Net library color.

GetCurrentState

#Since v5.0
Gets the current settings of the application.
public static AppearanceSettingsState GetCurrentState()
An instance of a class that represents all the settings as they appear in the Rhino _Options dialog, joined in a single class.

GetDefaultState

#Since v5.0
Gets the factory settings of the application.
public static AppearanceSettingsState GetDefaultState()
An instance of a class that represents all the default settings joined together.

GetDefaultState

#Since v8.0
Gets the factory settings of the application.
public static AppearanceSettingsState GetDefaultState(
darkMode
)
An instance of a class that represents all the default settings joined together.

GetPaintColor

#Since v7.1
Gat a paint color. This overload provides a compute option for cases where colors are computed when they are "unset" colors.
public static Color GetPaintColor(
whichColor,
compute
if true, a color is computed in some cases
)

GetPaintColor

#Since v5.0
Gets the color that is currently associated with a paint color.
public static Color GetPaintColor(
whichColor
A color association.
)
A .Net library color.

GetWidgetColor

#Since v6.0
Gets the .Net library color that is currently associated with a widget color.
public static Color GetWidgetColor(
whichColor
A color association.
)
A .Net library color.

InitialMainWindowPosition

#Since v6.0
Location where the Main Rhino window attempts to show when the application is first started.
public static bool InitialMainWindowPosition(
bounds
The rectangle in which the main window attempts to shows is assigned to this out parameter during the call.
)
false if the information could not be retrieved.

RestoreDefaults

#Since v5.0
Commits the default settings as the current settings.
public static void RestoreDefaults()

SetPaintColor

#Since v5.0
Sets the logical paint color association to a specific .Net library color.
public static void SetPaintColor(
whichColor,
A logical color association.
c,
A .Net library color.
forceUiUpdate
true if the UI should be forced to update.
)

SetPaintColor

#Since v5.0
Sets the logical paint color association to a specific .Net library color, without forced UI update.
public static void SetPaintColor(
whichColor,
A logical color association.
c
A .Net library color.
)

SetToDarkMode

#Since v8.2
Set UI to the default dark mode color scheme
public static bool SetToDarkMode()
true on sucess

SetToLightMode

#Since v8.2
Set UI to the default light mode color scheme
public static bool SetToLightMode()
true on sucess

SetWidgetColor

#Since v6.0
Sets the logical widget color association to a specific .Net library color.
public static void SetWidgetColor(
whichColor,
A logical color association.
c,
A .Net library color.
forceUiUpdate
true if the UI should be forced to update.
)

SetWidgetColor

#Since v6.0
Sets the logical widget color association to a specific .Net library color, without forced UI update.
public static void SetWidgetColor(
whichColor,
A logical color association.
c
A .Net library color.
)

UpdateFromState

#Since v5.0
Sets all settings to a particular defined joined state.
public static void UpdateFromState(
state
A joined settings object.
)

UsingDefaultDarkModeColors

#Since v8.2
Determine if Rhino is running with default dark mode color settings
public static bool UsingDefaultDarkModeColors()

UsingDefaultLightModeColors

#Since v8.2
Determine if Rhino is running with default light mode color settings
public static bool UsingDefaultLightModeColors()