Freigeben über


ShapeElement.UpdateGeometryLuminosity Method (DiagramClientView, Brush)

Updates the luminosity for the brush.

Namespace:  Microsoft.VisualStudio.Modeling.Diagrams
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0.dll)

Syntax

'Declaration
Public Function UpdateGeometryLuminosity ( _
    view As DiagramClientView, _
    brush As Brush _
) As Color
public Color UpdateGeometryLuminosity(
    DiagramClientView view,
    Brush brush
)
public:
virtual Color UpdateGeometryLuminosity(
    DiagramClientView^ view, 
    Brush^ brush
) sealed
abstract UpdateGeometryLuminosity : 
        view:DiagramClientView * 
        brush:Brush -> Color 
override UpdateGeometryLuminosity : 
        view:DiagramClientView * 
        brush:Brush -> Color 
public final function UpdateGeometryLuminosity(
    view : DiagramClientView, 
    brush : Brush
) : Color

Parameters

Return Value

Type: System.Drawing.Color
The color of the brush before the luminosity was updated.

Implements

IGeometryHost.UpdateGeometryLuminosity(DiagramClientView, Brush)

Examples

if (this.HasFilledBackground(geometryHost))
{                    
    Color oldColor = geometryHost.UpdateGeometryLuminosity(e.View, interiorBrush);                                       
    graphics.FillPath(interiorBrush, interiorPath);
    
    graphics.DrawPath(solidLinePen, interiorPath);
    SolidBrush brush = interiorBrush as SolidBrush;
    if (brush != null) { brush.Color = oldColor; }                  
    
}

.NET Framework Security

See Also

Reference

ShapeElement Class

UpdateGeometryLuminosity Overload

Microsoft.VisualStudio.Modeling.Diagrams Namespace