<?xml version="1.0" encoding="utf-8"?>
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
  <CodeSnippet Format="1.0.0">
    <Header>
      <Title>Proteger un gráfico</Title>
      <Author>Microsoft Corporation</Author>
      <Description>Protege un objeto del gráfico Excel.</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>
      </References>
      <Imports>
        <Import>
          <Namespace>Excel = Microsoft.Office.Interop.Excel</Namespace>
        </Import>
      </Imports>
      <Declarations>
        <Literal Editable="true">
          <ID>protectDrawingObjects</ID>
          <Type></Type>
          <ToolTip>Reemplazar por un valor booleano. True para proteger formas en la hoja de cálculo.</ToolTip>
          <Default>True</Default>
          <Function></Function>
        </Literal>
        <Literal Editable="true">
          <ID>protectContents</ID>
          <Type>Boolean</Type>
          <ToolTip>Reemplazar por un valor booleano. Si es True o está vacío, se protegen todas las celdas bloqueadas de la hoja.</ToolTip>
          <Default>True</Default>
          <Function></Function>
        </Literal>
        <Literal Editable="true">
          <ID>userInterfaceOnly</ID>
          <Type>Boolean</Type>
          <ToolTip>Reemplazar por un valor booleano. True para permitir código detrás del documento para alterar su contenido.</ToolTip>
          <Default>True</Default>
          <Function></Function>
        </Literal>
        <Literal Editable="true">
          <ID>scenarios</ID>
          <Type>System.Object</Type>
          <ToolTip/>
          <Default>scenarios</Default>
          <Function/>
        </Literal>
        <Object Editable="true">
          <ID>password</ID>
          <Type>String</Type>
          <ToolTip>Reemplazar por la contraseña con la que proteger la hoja de cálculo.</ToolTip>
          <Default>"Password"</Default>
          <Function></Function>
        </Object>
        <Object Editable="true">
          <ID>chart</ID>
          <Type>Microsoft.Office.Interop.Excel.Chart</Type>
          <ToolTip>Reemplazar por el gráfico que se va a proteger.</ToolTip>
          <Default>chart</Default>
          <Function></Function>
        </Object>
      </Declarations>
      <Code Language="VB" Kind="" Delimiter="$"><![CDATA[
$chart$.Protect( $password$, _
				 $protectDrawingObjects$, _
				 $protectContents$, 
				 $scenarios$, _
				 $userInterfaceOnly$)
			]]></Code>
    </Snippet>
  </CodeSnippet>
</CodeSnippets>
