Share via


ShapeElement.GetShapeLuminosity(DiagramClientView, Color) Method

Definition

Calculates shape's luminosity based on current color's luminosity, and whether or not it's in the highlight list.

public:
 virtual System::Drawing::Color GetShapeLuminosity(Microsoft::VisualStudio::Modeling::Diagrams::DiagramClientView ^ view, System::Drawing::Color color);
public virtual System.Drawing.Color GetShapeLuminosity (Microsoft.VisualStudio.Modeling.Diagrams.DiagramClientView view, System.Drawing.Color color);
abstract member GetShapeLuminosity : Microsoft.VisualStudio.Modeling.Diagrams.DiagramClientView * System.Drawing.Color -> System.Drawing.Color
override this.GetShapeLuminosity : Microsoft.VisualStudio.Modeling.Diagrams.DiagramClientView * System.Drawing.Color -> System.Drawing.Color
Public Overridable Function GetShapeLuminosity (view As DiagramClientView, color As Color) As Color

Parameters

view
DiagramClientView

Current DiagramClientView to query for highlighting.

color
Color

Color to update.

Returns

Updated color.

Applies to