バージョン

Multiline プロパティ (UltraTextEditor)

このコントロールが複数行テキストをサポートしているかどうかを取得または設定します。
シンタックス
'宣言
 
Public Overridable Property Multiline As Boolean
public virtual bool Multiline {get; set;}
使用例
Imports Infragistics.Win
Imports Infragistics.Win.UltraWinEditors

    '	This example configures the control for multiline text entry.
    Private Sub SetupMultilineText()

        '	Set Multiline to true so we can have multiple lines of text in the control
        Me.UltraTextEditor1.Multiline = True

        '	Set the size of the control to be large enough to accommodate
        '	a few lines of text
        Me.UltraTextEditor1.Width = 300
        Me.UltraTextEditor1.Height = 200

        '	Set AcceptsReturn to true so the ENTER key creates a new line of text
        Me.UltraTextEditor1.AcceptsReturn = True

        '	Set AcceptsTab to true so the TAB key does not cause us to navigate
        '	to the next control on the form
        Me.UltraTextEditor1.AcceptsTab = True

        '	Set the Scrollbars property to display a vertical scrollbar,
        '	but not a horizontal one
        Me.UltraTextEditor1.Scrollbars = ScrollBars.Vertical

        '	Set the MaxLength property to 1Kb so we limit the amount
        '	of text that can be typed into the control
        Me.UltraTextEditor1.MaxLength = 1024

        '	Preset the text displayed by the control, and select it all
        '	so that the preset text will be removed as soon as the
        '	end user starts typing.
        '	Note that we must be in edit mode to set the text selection,
        '	so use the control's Focus method to get it into edit mode.
        Me.UltraTextEditor1.Text = "[Type description here]"
        Me.UltraTextEditor1.Focus()
        Me.UltraTextEditor1.SelectionStart = 0
        Me.UltraTextEditor1.SelectionLength = Me.UltraTextEditor1.Text.Length

        '	Suppress word wrapping so the end user has full control
        '	over the line breaks.
        Me.UltraTextEditor1.WordWrap = False
    End Sub
using System.Diagnostics;
using Infragistics.Win;
using Infragistics.Win.UltraWinEditors;

		private void SetupMultilineText()
		{
			//	Set Multiline to true so we can have multiple lines of text in the control
			this.ultraTextEditor1.Multiline = true;

			//	Set the size of the control to be large enough to accommodate
			//	a few lines of text
			this.ultraTextEditor1.Width = 300;
			this.ultraTextEditor1.Height = 200;

			//	Set AcceptsReturn to true so the ENTER key creates a new line of text
			this.ultraTextEditor1.AcceptsReturn = true;

			//	Set AcceptsTab to true so the TAB key does not cause us to navigate
			//	to the next control on the form
			this.ultraTextEditor1.AcceptsTab = true;

			//	Set the Scrollbars property to display a vertical scrollbar,
			//	but not a horizontal one
			this.ultraTextEditor1.Scrollbars = ScrollBars.Vertical;

			//	Set the MaxLength property to 1Kb so we limit the amount
			//	of text that can be typed into the control
			this.ultraTextEditor1.MaxLength = 1024;

			//	Preset the text displayed by the control, and select it all
			//	so that the preset text will be removed as soon as the
			//	end user starts typing.
			//	Note that we must be in edit mode to set the text selection,
			//	so use the control's Focus method to get it into edit mode.
			this.ultraTextEditor1.Text = "[Type description here]";
			this.ultraTextEditor1.Focus();
			this.ultraTextEditor1.SelectionStart = 0;
			this.ultraTextEditor1.SelectionLength = this.ultraTextEditor1.Text.Length;
	
			//	Suppress word wrapping so the end user has full control
			//	over the line breaks.
			this.ultraTextEditor1.WordWrap = false;
		}
参照