RadButton
Programming/RadControl for WINFORMS
2013. 4. 22. 19:01
- RadButton은 기본 Winforms 버튼을 대체하며, 테마를 지원합니다.
- RadButton을 폼에 드래그하여 추가합니다.
코딩을 이용하여 버튼을 추가하는경우는 아래의 소스를 참조하세요
[C#]에서 RadButton 추가
RadButton myNewRadButton = new RadButton(); myNewRadButton.Text = "My New RadButton"; myNewRadButton.Width = 150; myNewRadButton.Height = 50; this.Controls.Add(myNewRadButton);
![](http://www.telerik.com/help/winforms/icons/CopyCode.gif)
Dim myNewRadButton As New RadButton()
myNewRadButton.Text = "My New RadButton"
myNewRadButton.Width = 150
myNewRadButton.Height = 50
Me.Controls.Add(myNewRadButton)
또한 버튼안에 들어가는 텍스트는 HTML 태그를 이용할수 있으며, 지원하는 태그는 다음과 같습니다.
<font> | N/A |
폰트 설정 |
<color> | N/A | 글자 색. |
<size> | N/A | 글자크기. |
<b> | </b> | 굵게. |
<i> | </i> | 기울임꼴. |
<u> | </u> |
텍스트 밑줄 |
<br> | N/A |
줄바꿈. |
다음은 예제 코드입니다.
[C#]
this.radButton1.Text = "This is RadLabel
Arial, Bold
Times, Italic Underline
Size = 9
Sample Text";
![](http://www.telerik.com/help/winforms/icons/CopyCode.gif)
Me.radButton1.Text = "This is RadLabel
Arial, BoldTimes, Italic Underline Size = 9 Sample Text"
![buttons-button-html-like-text-formatting 001](http://www.telerik.com/help/winforms/media/buttons-button-html-like-text-formatting001.png)
'Programming > RadControl for WINFORMS' 카테고리의 다른 글
DropDownButton (0) | 2013.04.22 |
---|