DrawingAttributes.Clone 메서드

정의

DrawingAttributes 개체를 복사합니다.

public:
 virtual System::Windows::Ink::DrawingAttributes ^ Clone();
public virtual System.Windows.Ink.DrawingAttributes Clone ();
abstract member Clone : unit -> System.Windows.Ink.DrawingAttributes
override this.Clone : unit -> System.Windows.Ink.DrawingAttributes
Public Overridable Function Clone () As DrawingAttributes

반환

DrawingAttributes

DrawingAttributes 개체의 복사본입니다.

예제

다음 예제에서는 복사 하는 방법에 설명 된 DrawingAttributes 개체입니다.

void CopyAttributes(Stroke someStroke)
{
    DrawingAttributes attributes = new DrawingAttributes();
    attributes.Color = Colors.Red;
    someStroke.DrawingAttributes = attributes.Clone();
}
Sub CopyAttributes(ByVal someStroke As Stroke)
    Dim attributes As New DrawingAttributes()
    attributes.Color = Colors.Red
    someStroke.DrawingAttributes = attributes.Clone()
End Sub

설명

합니다 Clone 메서드를 만듭니다 DrawingAttributes 개체 및 현재 개체와 동일한 값으로 채웁니다. 사용자 지정 속성도 복사 됩니다.

적용 대상

추가 정보