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
声明
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
- view
 Type: Microsoft.VisualStudio.Modeling.Diagrams.DiagramClientView
 The client view for the diagram.
- brush
 Type: System.Drawing.Brush
 The brush.
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
- 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.