?? 29eb79c3-6851-c8ed-0b8a-29c89e30a58d.htm
字號:
?<html xmlns:MSHelp="http://msdn.microsoft.com/mshelp"><head><title>Item Property (index)</title><link rel="stylesheet" type="text/css" href="../styles/presentation.css" /><link rel="stylesheet" type="text/css" href="ms-help://Hx/HxRuntime/HxLink.css" /><script type="text/javascript" src="../scripts/EventUtilities.js"> </script><script type="text/javascript" src="../scripts/StyleUtilities.js"> </script><script type="text/javascript" src="../scripts/SplitScreen.js"> </script><script type="text/javascript" src="../scripts/ElementCollection.js"> </script><script type="text/javascript" src="../scripts/MemberFilter.js"> </script><script type="text/javascript" src="../scripts/CollapsibleSection.js"> </script><script type="text/javascript" src="../scripts/LanguageFilter.js"> </script><script type="text/javascript" src="../scripts/CookieDataStore.js"> </script><meta name="file" content="29eb79c3-6851-c8ed-0b8a-29c89e30a58d" /><xml xmlns:msxsl="urn:schemas-microsoft-com:xslt"><MSHelp:Attr Name="AssetID" Value="P:Phidgets.EncoderEncoderCollection.Item(System.Int32)" /><MSHelp:Keyword Index="A" Term="P:Phidgets.EncoderEncoderCollection.Item(System.Int32)" /><MSHelp:Keyword Index="A" Term="frlrfPhidgetsEncoderEncoderCollectionClassItemTopic" /><MSHelp:Keyword Index="K" Term="Item property" /><MSHelp:Keyword Index="K" Term="EncoderEncoderCollection.Item property" /><MSHelp:Keyword Index="F" Term="Item" /><MSHelp:Keyword Index="F" Term="EncoderEncoderCollection.Item" /><MSHelp:Keyword Index="F" Term="Phidgets.EncoderEncoderCollection.Item" /><MSHelp:Attr Name="TopicType" Value="apiref" /><MSHelp:Attr Name="TopicType" Value="kbSyntax" /><MSHelp:Attr Name="APIType" Value="Managed" /><MSHelp:Attr Name="APILocation" Value="Phidget21.NET.dll" /><MSHelp:Attr Name="APIName" Value="..Item" /><MSHelp:Attr Name="Locale" Value="en-us" /><MSHelp:Attr Name="Abstract" Value="The encoder indexer list. This gets or sets the encoder position according to the provided index." /></xml></head><body><script type="text/javascript">var store = new CookieDataStore('docs');registerEventHandler(window, 'load', function() { var ss = new SplitScreen('control', 'main'); selectLanguage(store.get('lang')); });</script><div id="control"><span class="productTitle">A Sandcastle Documented Class Library</span><br /><span class="topicTitle">Item Property (index)</span><br /><div id="toolbar"><span id="chickenFeet"><a href="d4648875-d41a-783b-d5f4-638df39ee413.htm">Namespaces</a> ? <a href="9332f00d-a9eb-15d0-fa45-c524653f1513.htm">Phidgets</a> ? <a href="9687356e-a2c2-5196-c9c9-5eaae3a1feaa.htm">EncoderEncoderCollection</a> ? <span class="selflink">Item<span class="languageSpecificText"><span class="cs">[</span><span class="vb">(</span><span class="cpp">[</span><span class="nu">(</span></span>Int32<span class="languageSpecificText"><span class="cs">]</span><span class="vb">)</span><span class="cpp">]</span><span class="nu">)</span></span></span></span><span id="languageFilter"><select id="languageSelector" onchange="var names = this.value.split(' '); toggleVisibleLanguage(names[1]); lfc.switchLanguage(names[0]); store.set('lang',this.value); store.save();"><option value="CSharp cs">C#</option><option value="VisualBasic vb">Visual Basic</option><option value="ManagedCPlusPlus cpp">Visual C++</option></select></span><script>var sd = getStyleDictionary(); var lfc = new LanguageFilterController();</script></div></div><div id="main"><span style="color: DarkGray"> </span><div class="summary">
The encoder indexer list. This gets or sets the encoder position according to the provided index.
</div><div class="section"><div class="sectionTitle" onclick="toggleSection(this.parentNode)"><img src="../icons/collapse_all.gif" /> Declaration Syntax</div><div class="sectionContent"><table class="filter"><tr class="tabs" id="syntaxTabs"><td class="tab" x-lang="CSharp" onclick="st.toggleClass('x-lang','CSharp','activeTab','tab'); sb.toggleStyle('x-lang','CSharp','display','block','none');">C#</td><td class="tab" x-lang="VisualBasic" onclick="st.toggleClass('x-lang','VisualBasic','activeTab','tab'); sb.toggleStyle('x-lang','VisualBasic','display','block','none');">Visual Basic</td><td class="tab" x-lang="ManagedCPlusPlus" onclick="st.toggleClass('x-lang','ManagedCPlusPlus','activeTab','tab'); sb.toggleStyle('x-lang','ManagedCPlusPlus','display','block','none');">Visual C++</td></tr></table><div id="syntaxBlocks"><div class="code" x-lang="CSharp"><pre><span class="keyword">public</span> <a href="http://msdn2.microsoft.com/en-us/td2s409d" target="_blank">int</a> <span class="keyword">this</span>[
<a href="http://msdn2.microsoft.com/en-us/td2s409d" target="_blank">int</a> <span class="parameter">index</span>
] { <span class="keyword">get</span>; <span class="keyword">set</span>; }</pre></div><div class="code" x-lang="VisualBasic"><pre><span class="keyword">Public</span> <span class="keyword">Default</span> <span class="keyword">Property</span> <span class="identifier">Item</span> ( _
<span class="parameter">index</span> <span class="keyword">As</span> <a href="http://msdn2.microsoft.com/en-us/td2s409d" target="_blank">Integer</a> _
) <span class="keyword">As</span> <a href="http://msdn2.microsoft.com/en-us/td2s409d" target="_blank">Integer</a></pre></div><div class="code" x-lang="ManagedCPlusPlus"><pre><span class="keyword">public</span>:
<span class="keyword">property</span> <a href="http://msdn2.microsoft.com/en-us/td2s409d" target="_blank">int</a> <span class="keyword">default</span>[<a href="http://msdn2.microsoft.com/en-us/td2s409d" target="_blank">int</a> <span class="parameter">index</span>] {
<a href="http://msdn2.microsoft.com/en-us/td2s409d" target="_blank">int</a> <span class="keyword">get</span> (<a href="http://msdn2.microsoft.com/en-us/td2s409d" target="_blank">int</a> <span class="parameter">index</span>);
<span class="keyword">void</span> <span class="keyword">set</span> (<a href="http://msdn2.microsoft.com/en-us/td2s409d" target="_blank">int</a> <span class="parameter">index</span>, <a href="http://msdn2.microsoft.com/en-us/td2s409d" target="_blank">int</a> <span class="parameter">value</span>);
}</pre></div></div><script type="text/javascript">
var st = new ElementCollection('syntaxTabs');
var sb = new ElementCollection('syntaxBlocks');
lfc.registerTabbedArea(st, sb);
st.toggleClass('x-lang','CSharp','activeTab','tab');
sb.toggleStyle('x-lang','CSharp','display','block','none');
</script></div></div><div class="section"><div class="sectionTitle" onclick="toggleSection(this.parentNode)"><img src="../icons/collapse_all.gif" /> Parameters</div><div class="sectionContent"><dl><dt><span class="parameter">index</span>?(<a href="http://msdn2.microsoft.com/en-us/td2s409d" target="_blank">Int32</a>)</dt><dd>The encoder index.</dd></dl></div></div><div class="section"><div class="sectionTitle" onclick="toggleSection(this.parentNode)"><img src="../icons/collapse_all.gif" /> Value</div><div class="sectionContent">
The position of an encoder through the get property. This is an absolute position as calcutated since the encoder was plugged in.
</div></div><div class="section"><div class="sectionTitle" onclick="toggleSection(this.parentNode)"><img src="../icons/collapse_all.gif" /> Remarks</div><div class="sectionContent"><p>Sets the position of a specific encoder. This resets the internal position count for an encoder. This call in no way actually sends information to the device, as an absolute position is maintained only in the library.</p><p>After this call, position changes from the encoder will use the new value to calculate absolute position by using the return from the get property.</p><p>Returns the position of an encoder through the get property. This is an absolute position as calcutated since the encoder was plugged in.</p></div></div><div class="section"><div class="sectionTitle" onclick="toggleSection(this.parentNode)"><img src="../icons/collapse_all.gif" /> Exceptions</div><div class="sectionContent"><table class="exceptions"><tr><th class="exceptionNameColumn">Exception</th><th class="exceptionConditionColumn">Condition</th></tr><tr><td><a href="8edb365f-379f-1439-651c-18f12eafc13e.htm">PhidgetException</a></td><td>If this Phidget is not opened and attached, or if the index is out of range.<br /></td></tr></table></div></div><p><div id="footer"> </div>Assembly: Phidget21.NET (Module: Phidget21.NET) Version: 2.1.3.23</p></div></body></html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -