取得或設定值,這個值表示 Tablet PC 輸入面板是否會在所附加的目標視窗取得焦點時自動顯示。
命名空間: Microsoft.Ink.TextInput
組件: Microsoft.Ink (在 Microsoft.Ink.dll 中)
語法
'宣告
Public Property InPlaceVisibleOnFocus As Boolean
'用途
Dim instance As TextInputPanel
Dim value As Boolean
value = instance.InPlaceVisibleOnFocus
instance.InPlaceVisibleOnFocus = value
public bool InPlaceVisibleOnFocus { get; set; }
public:
property bool InPlaceVisibleOnFocus {
bool get ();
void set (bool value);
}
/** @property */
public boolean get_InPlaceVisibleOnFocus()
/** @property */
public void set_InPlaceVisibleOnFocus(boolean value)
public function get InPlaceVisibleOnFocus () : boolean
public function set InPlaceVisibleOnFocus (value : boolean)
屬性值
型別:System.Boolean
如果 Tablet PC 輸入面板會在所附加的目標視窗取得焦點時自動顯示,則為 true,否則為 false。
備註
如果控制項的 InPlaceVisibleOnFocus 設定為 true,當該控制項取得焦點,而且所有其他條件並存時,則 Tablet PC 輸入面板會以預設的 InPlaceState 自動顯示。
藉由將 InPlaceVisibleOnFocus 設定為 false,就可以避免就地輸入面板和輸入面板圖示顯示。如果使用者或「群組原則」未停用這個屬性,則將它設定為 true 會還原為系統預設 (盡可能顯示)。對於提供自訂文字輸入做為輸入面板替代方案的應用程式,這個選項非常有用。
預設值為 true。
範例
以下範例將說明 InPlaceVisibleOnFocus 的用法。tip 物件是 TextInputPanel 的執行個體。InPlaceVisibleOnFocus 值是用來設定名為 outputTextBox 之 TextBox (英文) 的 TextBox.Text (英文) 屬性。
outputTextBox.Text += "In Place Visible On Focus is " + IIf(tip.InPlaceVisibleOnFocus, "Visible", "Not Visible") + Environment.NewLine 'TODO: For performance reasons this should be changed to nested IF statements
outputTextBox.Text += "In Place Visible On Focus is " + (tip.InPlaceVisibleOnFocus ? "Visible" : "Not Visible") + Environment.NewLine;
平台
Windows Vista, Windows XP SP2, Windows Server 2003
.NET Framework 和 .NET Compact Framework 並不支援各種平台的所有版本。如需支援平台版本的相關資訊,請參閱 .NET Framework 系統需求。
版本資訊
.NET Framework
支援版本:3.0