IInfoPathViewControl.Value 屬性
取得或設定列舉中,目前控制項的值。
**命名空間:**Microsoft.Office.Interop.InfoPath
**組件:**Microsoft.Office.Interop.InfoPath (於 microsoft.office.interop.infopath.dll 中)
語法
'宣告
<DispIdAttribute(1610678279)> _
Property Value As String
'用途
Dim instance As IInfoPathViewControl
Dim value As String
value = instance.Value
instance.Value = value
[DispIdAttribute(1610678279)]
string Value { get; set; }
屬性值
控制項的值。
備註
下列控制項僅限於特定資料型別。
控制項 |
資料型別 |
---|---|
文字方塊 |
任何 xsd:string 值 |
RTF 文字方塊 |
最上層元素上有 XHTML 命名空間的 XHTML 樹狀結構。XHTML 樹狀結構將不經剖析而插入 XML DOM 中。 |
下拉式清單方塊 |
任何 xsd:string 值 |
清單方塊 |
任何 xsd:string 值 |
日期選擇器 |
任何 xsd:string 值 |
核取方塊 |
"CHECKED" 或 "UNCHECKED" |
選項按鈕 |
"SELECTED" |
項目符號、編號和一般清單 |
任何 xsd:string 值 |
圖片與筆跡圖片 |
任何 xsd:base64Binary 資料 |
如需檢視中列舉的控制項 (如果出現的話) 清單,請參閱 IInfoPathDataImporterFields 介面的 GetControls 方法。
如需有關以程式設計方式將資料匯入 InfoPath 表單的詳細資訊,請參閱 Microsoft Office 開發人員中心上的 InfoPath 開發人員入口網站 (英文)。
請參閱
參考
IInfoPathViewControl 介面
IInfoPathViewControl 成員
Microsoft.Office.Interop.InfoPath 命名空間