ShapeElement.ModifyLuminosity Method
Calculates the luminosity of the highlight for the shape.
Namespace: Microsoft.VisualStudio.Modeling.Diagrams
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Diagrams.11.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.11.0.dll)
Syntax
'Declaration
Protected Overridable Function ModifyLuminosity ( _
currentLuminosity As Integer, _
view As DiagramClientView _
) As Integer
protected virtual int ModifyLuminosity(
int currentLuminosity,
DiagramClientView view
)
protected:
virtual int ModifyLuminosity(
int currentLuminosity,
DiagramClientView^ view
)
abstract ModifyLuminosity :
currentLuminosity:int *
view:DiagramClientView -> int
override ModifyLuminosity :
currentLuminosity:int *
view:DiagramClientView -> int
protected function ModifyLuminosity(
currentLuminosity : int,
view : DiagramClientView
) : int
Parameters
currentLuminosity
Type: Int32The current luminosity for the shape.
view
Type: Microsoft.VisualStudio.Modeling.Diagrams.DiagramClientViewThe diagram view.
Return Value
Type: Int32
New luminosity value.
Remarks
The formula that creates luminosity. By default, the formula is: if luminosity is >= 160, then luminosity = luminosity * 0.9; otherwise, luminosity = luminosity + 40.
.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.