home *** CD-ROM | disk | FTP | other *** search
/ ftp.tcs3.com / ftp.tcs3.com.tar / ftp.tcs3.com / DRIVERS / Audio / Office2010 / InfoPath.en-us / InfLR.cab / FL_DefineAnEnumerationWithCustomValues_sni_142724_ENU____.3643236F_FC70_11D3_A536_0090278A1BB8 < prev    next >
Extensible Markup Language  |  2008-06-12  |  2KB  |  57 lines

  1. ∩╗┐<?xml version="1.0" encoding="UTF-8"?>
  2. <CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
  3.   <CodeSnippet Format="1.0.0">
  4.     <Header>
  5.       <Title>Define an Enumeration with Custom Values</Title>
  6.       <Author>Microsoft Corporation</Author>
  7.       <Description>Defines an enumeration with specified integer values.</Description>
  8.       <Shortcut>EnumCustom</Shortcut>
  9.     </Header>
  10.     <Snippet>
  11.       <Imports>
  12.         <Import>
  13.           <Namespace>System</Namespace>
  14.         </Import>
  15.         <Import>
  16.           <Namespace>Microsoft.VisualBasic</Namespace>
  17.         </Import>
  18.       </Imports>
  19.       <Declarations>
  20.         <Object>
  21.           <ID>EnumName</ID>
  22.           <Type>String</Type>
  23.           <ToolTip>Replace with enumeration name.</ToolTip>
  24.           <Default>MyEnum</Default>
  25.         </Object>
  26.         <Literal>
  27.           <ID>Enum1</ID>
  28.           <Type>String</Type>
  29.           <ToolTip>Replace with an enumeration value.</ToolTip>
  30.           <Default>ValueOne</Default>
  31.         </Literal>
  32.         <Literal>
  33.           <ID>Enum2</ID>
  34.           <Type>String</Type>
  35.           <ToolTip>Replace with an enumeration value.</ToolTip>
  36.           <Default>ValueTwo</Default>
  37.         </Literal>
  38.         <Literal>
  39.           <ID>Value1</ID>
  40.           <Type>Integer</Type>
  41.           <ToolTip>Replace with an Integer.</ToolTip>
  42.           <Default>2</Default>
  43.         </Literal>
  44.         <Literal>
  45.           <ID>Value2</ID>
  46.           <Type>Integer</Type>
  47.           <ToolTip>Replace with an Integer.</ToolTip>
  48.           <Default>3</Default>
  49.         </Literal>
  50.       </Declarations>
  51.       <Code Language="VB" Kind="type decl"><![CDATA[Enum $EnumName$
  52.     $Enum1$ = $Value1$
  53.     $Enum2$ = $Value2$
  54. End Enum]]></Code>
  55.     </Snippet>
  56.   </CodeSnippet>
  57. </CodeSnippets>