다음을 통해 공유


ShapeElement.UpdateGeometryLuminosity 메서드 (DiagramClientView, Brush)

브러시의 광도를 업데이트입니다.

네임스페이스:  Microsoft.VisualStudio.Modeling.Diagrams
어셈블리:  Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0(Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0.dll)

구문

‘선언
Public Function UpdateGeometryLuminosity ( _
    view As DiagramClientView, _
    brush As Brush _
) As Color
public Color UpdateGeometryLuminosity(
    DiagramClientView view,
    Brush brush
)

매개 변수

반환 값

형식: System.Drawing.Color
광도가 업데이트되기 전의 브러시의 색입니다.

구현

IGeometryHost.UpdateGeometryLuminosity(DiagramClientView, Brush)

예제

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 보안

  • 직접 실행 호출자의 경우 완전히 신뢰합니다. 이 멤버는 부분적으로 신뢰할 수 있는 코드에서 사용할 수 없습니다. 자세한 내용은 부분 신뢰 코드에서 라이브러리 사용을 참조하십시오.

참고 항목

참조

ShapeElement 클래스

UpdateGeometryLuminosity 오버로드

Microsoft.VisualStudio.Modeling.Diagrams 네임스페이스