Udostępnij za pośrednictwem


ShapeElement.UpdateGeometryLuminosity Method

Definition

Overloads

UpdateGeometryLuminosity(DiagramClientView, Brush)

Modifies the luminosity of the specified brush. (Intended to be called only by the ShapeGeometry-derived classes.)

UpdateGeometryLuminosity(DiagramClientView, Pen)

Modifies the luminosity of the specified pen. (Intended to be called only by the ShapeGeometry-derived classes.)

UpdateGeometryLuminosity(DiagramClientView, Brush)

Modifies the luminosity of the specified brush. (Intended to be called only by the ShapeGeometry-derived classes.)

public:
 virtual System::Drawing::Color UpdateGeometryLuminosity(Microsoft::VisualStudio::Modeling::Diagrams::DiagramClientView ^ view, System::Drawing::Brush ^ brush);
public System.Drawing.Color UpdateGeometryLuminosity (Microsoft.VisualStudio.Modeling.Diagrams.DiagramClientView view, System.Drawing.Brush brush);
abstract member UpdateGeometryLuminosity : Microsoft.VisualStudio.Modeling.Diagrams.DiagramClientView * System.Drawing.Brush -> System.Drawing.Color
override this.UpdateGeometryLuminosity : Microsoft.VisualStudio.Modeling.Diagrams.DiagramClientView * System.Drawing.Brush -> System.Drawing.Color
Public Function UpdateGeometryLuminosity (view As DiagramClientView, brush As Brush) As Color

Parameters

view
DiagramClientView

The DiagramClientView which may maintain useful highlighting information.

brush
Brush

The brush whose luminosity is to be updated.

Returns

The old color for the caller to reset if needed

Implements

Applies to

UpdateGeometryLuminosity(DiagramClientView, Pen)

Modifies the luminosity of the specified pen. (Intended to be called only by the ShapeGeometry-derived classes.)

public:
 virtual System::Drawing::Color UpdateGeometryLuminosity(Microsoft::VisualStudio::Modeling::Diagrams::DiagramClientView ^ view, System::Drawing::Pen ^ pen);
public System.Drawing.Color UpdateGeometryLuminosity (Microsoft.VisualStudio.Modeling.Diagrams.DiagramClientView view, System.Drawing.Pen pen);
abstract member UpdateGeometryLuminosity : Microsoft.VisualStudio.Modeling.Diagrams.DiagramClientView * System.Drawing.Pen -> System.Drawing.Color
override this.UpdateGeometryLuminosity : Microsoft.VisualStudio.Modeling.Diagrams.DiagramClientView * System.Drawing.Pen -> System.Drawing.Color
Public Function UpdateGeometryLuminosity (view As DiagramClientView, pen As Pen) As Color

Parameters

view
DiagramClientView

The DiagramClientView which may maintain useful highlighting information.

pen
Pen

The pen whose luminosity is to be updated.

Returns

The old color for the caller to reset if needed

Implements

Applies to