■ Label 클래스의 TextDecorations 속성을 사용하는 방법을 보여준다.
▶ 예제 코드 (C#)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
Label label1 = new Label { TextDecorations = TextDecorations.Underline, Text = "This is underlined text." }; Label label2 = new Label { TextDecorations = TextDecorations.Strikethrough, Text = "This is text with strikethrough." }; Label label3 = new Label { TextDecorations = TextDecorations.Underline | TextDecorations.Strikethrough, Text = "This is underlined text with strikethrough." }; |