共用方式為


TextSpan<T>(Int32, T) 建構函式

定義

指定文字範圍長度以及與其相關聯的值,初始化 TextSpan<T> 類別的新執行個體。

public:
 TextSpan(int length, T value);
public TextSpan (int length, T value);
new System.Windows.Media.TextFormatting.TextSpan<'T> : int * 'T -> System.Windows.Media.TextFormatting.TextSpan<'T>
Public Sub New (length As Integer, value As T)

參數

length
Int32

表示文字範圍中之字元數目的 Int32 值。

value
T

與文字範圍關聯的物件。

適用於