<?xml version="1.0" encoding="utf-8"?>
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
  <CodeSnippet Format="1.0.0">
    <Header>
      <Title>Enlazar datos a un objeto de lista</Title>
      <Author>Microsoft Corporation</Author>
      <Description>Enlaza datos a un control Excel ListObject mediante un objeto BindingSource.</Description>
      <HelpUrl></HelpUrl>
      <SnippetTypes>
        <SnippetType>Expansion</SnippetType>
      </SnippetTypes>
      <Keywords>
        <Keyword></Keyword>
      </Keywords>
      <Shortcut></Shortcut>
    </Header>
    <Snippet>
      <References>
        <Reference>
          <Assembly>Microsoft.Office.Interop.Excel.dll</Assembly>
          <Url></Url>
        </Reference>
        <Reference>
          <Assembly>Microsoft.Office.Tools.Excel.dll</Assembly>
          <Url></Url>
        </Reference>
        <Reference>
          <Assembly>System.Windows.Forms.dll</Assembly>
          <Url></Url>
        </Reference>
      </References>
      <Imports>
        <Import>
          <Namespace>Excel = Microsoft.Office.Interop.Excel</Namespace>
        </Import>
        <Import>
          <Namespace>Microsoft.Office.Tools.Excel</Namespace>
        </Import>
        <Import>
          <Namespace>System.Windows.Forms</Namespace>
        </Import>
      </Imports>
      <Declarations>
        <Literal Editable="true">
          <ID>dataMember</ID>
          <Type>System.String</Type>
          <ToolTip>Reemplazar por el miembro del origen de datos al que se desea enlazar, si es necesario. También se puede establecer como el segundo parámetro del método SetDataBinding.</ToolTip>
          <Default>"dataMember"</Default>
          <Function></Function>
        </Literal>
        <Literal Editable="true">
          <ID>mappedColumns</ID>
          <Type>System.String[]</Type>
          <ToolTip>Reemplazar por los nombres de las columnas del miembro de datos que desea mostrar en el control ListObject.  Para agregar una columna no asignada, incluya una cadena vacía en la matriz.</ToolTip>
          <Default>"mappedColumns"</Default>
          <Function></Function>
        </Literal>
        <Object Editable="true">
          <ID>bindingSource</ID>
          <Type>System.Windows.Forms.BindingSource</Type>
          <ToolTip>Reemplazar por un origen de enlace para establecer el enlace de datos.</ToolTip>
          <Default>bindingSource</Default>
          <Function></Function>
        </Object>
        <Object Editable="true">
          <ID>list</ID>
          <Type>Microsoft.Office.Tools.Excel.ListObject</Type>
          <ToolTip>Reemplazar por el objeto de lista al que se van a enlazar los datos.</ToolTip>
          <Default>list</Default>
          <Function></Function>
        </Object>
      </Declarations>
      <Code Language="CSharp" Kind="" Delimiter="$"><![CDATA[
$list$.SetDataBinding($bindingSource$, $dataMember$, $mappedColumns$);		]]></Code>
    </Snippet>
  </CodeSnippet>
</CodeSnippets>
