ShapeElement.ModifyLuminosity Method

Calculates the luminosity of the highlight for 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

'Declaração
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: System.Int32
    The current luminosity for the shape.

Return Value

Type: System.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

See Also

Reference

ShapeElement Class

Microsoft.VisualStudio.Modeling.Diagrams Namespace