使用されていません。PenInputPanel オブジェクトが表示されるかどうかを示す値を取得または設定します。PenInputPanel は Microsoft.Ink.TextInput に置き換えられました。
名前空間 : Microsoft.Ink
アセンブリ : Microsoft.Ink (Microsoft.Ink.dll 内)
構文
'宣言
Public Property Visible As Boolean
'使用
Dim instance As PenInputPanel
Dim value As Boolean
value = instance.Visible
instance.Visible = value
public bool Visible { get; set; }
public:
property bool Visible {
bool get ();
void set (bool value);
}
/** @property */
public boolean get_Visible()
/** @property */
public void set_Visible(boolean value)
public function get Visible () : boolean
public function set Visible (value : boolean)
プロパティ値
型 : System.Boolean
ペン入力パネルを表示する場合は true。それ以外の場合は false。
解説
結合されるコントロールにフォーカスがある場合のみ、Visible プロパティを true に設定できます。フォーカスがない場合、このプロパティを設定するとエラーが生成されます。
![]() |
---|
部分信頼で使用している場合、このプロパティには PenInputPanel により必要とされるアクセス許可に加えて、SecurityPermissionFlag.AllFlags アクセス許可が必要です。詳細については、「Security and Trust」を参照してください。 |
例
この C# の例では、PenInputPanel オブジェクト thePenInputPanel を作成し、それを InkEdit コントロール theInkEdit に結合します。次に、VisibleChanged イベント ハンドラ VisibleChanged_Event を結合します。イベント ハンドラは、Visible プロパティが true に設定されている場合、theInkEdit のコンテンツに文を追加します。
[C#]
//...
// Delcare the PenInputPanel object
PenInputPanel thePenInputPanel;
public Form1()
{
// Required for Windows Form Designer support
InitializeComponent();
// Create and attach the new PenInputPanel to an InkEdit control.
thePenInputPanel = new PenInputPanel(theInkEdit);
// Add a VisibleChanged event handler
thePenInputPanel.VisibleChanged +=
new PenInputPanelVisibleChangedEventHandler(VisibleChanged_Event);
}
//...
public void VisibleChanged_Event(object sender,
PenInputPanelVisibleChangedEventArgs e)
{
// Make sure the object that generated
// the event is a PenInputPanel object
if (sender is PenInputPanel)
{
PenInputPanel theSenderPanel = (PenInputPanel)sender;
// When the panel has become visible...
if (theSenderPanel.Visible)
{
// Display a message in the attached edit control
theSenderPanel.AttachedEditControl.Text += "The panel is visible." + Environment.NewLine;
}
}
}
この Microsoft® Visual Basic® .NET の例では、PenInputPanel オブジェクト thePenInputPanel を作成し、それを InkEdit コントロール theInkEdit に結合します。次に、VisibleChanged イベント ハンドラ VisibleChanged_Event を結合します。イベント ハンドラは、Visible プロパティが true に設定されている場合、theInkEdit のコンテンツに文を追加します。
[Visual Basic]
'...
' Declare the PenInputPanel object
Dim thePenInputPanel As PenInputPanel
Public Sub New()
MyBase.New()
' Required for Windows Form Designer support
InitializeComponent()
' Create and attach the new PenInputPanel to an InkEdit control.
thePenInputPanel = New PenInputPanel(theInkEdit)
' Add a VisibleChanged event handler
AddHandler thePenInputPanel.VisibleChanged, _
AddressOf VisibleChanged_Event
End Sub 'New
'...
Public Sub VisibleChanged_Event(sender As Object, e As _
PenInputPanelVisibleChangedEventArgs)
' Make sure the object that generated
' the event is a PenInputPanel object
If TypeOf sender Is PenInputPanel Then
Dim theSenderPanel As PenInputPanel = CType(sender, PenInputPanel)
' When the panel has become visible...
If theSenderPanel.Visible Then
' Display a message in the attached edit control
theSenderPanel.AttachedEditControl.Text &= _
"The panel is visible." & Environment.NewLine
End If
End If
End Sub 'VisibleChanged_Event
プラットフォーム
Windows Vista
.NET Framework および .NET Compact Framework では、各プラットフォームのすべてのバージョンはサポートしていません。サポートされているバージョンについては、「.NET Framework システム要件」を参照してください。
バージョン情報
.NET Framework
サポート対象 : 3.0