ShapeElement.GetShapeLuminosity Method
Calculates the luminosity of the shape.
Namespace: Microsoft.VisualStudio.Modeling.Diagrams
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0.dll)
Syntax
'宣言
Public Overridable Function GetShapeLuminosity ( _
view As DiagramClientView, _
color As Color _
) As Color
public virtual Color GetShapeLuminosity(
DiagramClientView view,
Color color
)
public:
virtual Color GetShapeLuminosity(
DiagramClientView^ view,
Color color
)
abstract GetShapeLuminosity :
view:DiagramClientView *
color:Color -> Color
override GetShapeLuminosity :
view:DiagramClientView *
color:Color -> Color
public function GetShapeLuminosity(
view : DiagramClientView,
color : Color
) : Color
Parameters
- view
Type: Microsoft.VisualStudio.Modeling.Diagrams.DiagramClientView
The diagram view.
- color
Type: System.Drawing.Color
The color of the shape.
Return Value
Type: System.Drawing.Color
Updated color.
Remarks
Luminosity is based on the current color of the shape and whether the shape is highlighted.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.