TextInputPanel.PreferredInPlaceDirection 屬性
取得或設定就地輸入面板相對於文字輸入欄位的慣用方向。
命名空間: Microsoft.Ink.TextInput
組件: Microsoft.Ink (在 Microsoft.Ink.dll 中)
語法
'宣告
Public Property PreferredInPlaceDirection As InPlaceDirection
'用途
Dim instance As TextInputPanel
Dim value As InPlaceDirection
value = instance.PreferredInPlaceDirection
instance.PreferredInPlaceDirection = value
public InPlaceDirection PreferredInPlaceDirection { get; set; }
public:
property InPlaceDirection PreferredInPlaceDirection {
InPlaceDirection get ();
void set (InPlaceDirection value);
}
/** @property */
public InPlaceDirection get_PreferredInPlaceDirection()
/** @property */
public void set_PreferredInPlaceDirection(InPlaceDirection value)
public function get PreferredInPlaceDirection () : InPlaceDirection
public function set PreferredInPlaceDirection (value : InPlaceDirection)
屬性值
型別:Microsoft.Ink.TextInput.InPlaceDirection
就地輸入面板相對於文字輸入欄位的慣用方向。
備註
藉由將 PreferredInPlaceDirection 設定為 Bottom 或 Top,應用程式可以指定就地輸入面板預設會顯示在文字輸入欄位上方或下方。PreferredInPlaceDirection 是偏好設定,因為就地輸入面板會覆寫由應用程式所設定,盡可能將輸入面板保持在螢幕上的偏好設定。
系統預設為盡可能將就地輸入面板置於文字欄位下方,否則會將它置於上方。將 PreferredInPlaceDirection 設定為 Auto 會還原系統預設。
範例
以下範例將說明 PreferredInPlaceDirection 的用法。tip 物件是 TextInputPanel 的執行個體。目前焦點所在的可編輯欄位是由 TextBox (英文) 控制項 textBox1 表示。
textBox1.Focus()
tip.PreferredInPlaceDirection = InPlaceDirection.Top
textBox1.Focus();
tip.PreferredInPlaceDirection = InPlaceDirection.Top;
平台
Windows Vista, Windows XP SP2, Windows Server 2003
.NET Framework 和 .NET Compact Framework 並不支援各種平台的所有版本。如需支援平台版本的相關資訊,請參閱 .NET Framework 系統需求。
版本資訊
.NET Framework
支援版本:3.0