Compartilhar via


Como: Editar recursos de seqüência de caracteres

You can use the Resource Designer to edit string resources for your project. The procedures for editing string resources differ from those of other resource types. For information about how to manage non-string resource types, see Como: Editar recursos.

You can cut, copy, and paste string resources between rows in the strings editor; however, you cannot paste individual values or comments. When you copy and paste strings from an external source, the Name, Value, and Comment fields must be separated by tabs. If they are not, the whole string will be added to the Name column.

For information about how the Resource Designer generates strongly-typed resources, see Gerenciando Recursos de Aplicativo.

To edit a string resource

  1. With a project selected in Solution Explorer, on the Project menu, click Properties.

  2. Click the Resources tab.

  3. On the Resource Designer toolbar, point to the resource view drop-down, click the arrow, and make sure that it is set to Strings (which is the default). A settings grid will appear, displaying the strings maintained by that instance of the Resource Designer.

  4. Select the cell in the string table that you want to edit and begin typing.

To copy string resources

  1. With a project selected in Solution Explorer, on the Project menu, click Properties.

  2. Click the Resources tab.

  3. On the Resource Designer toolbar, point to the resource view drop-down, click the arrow, and make sure that it is set to Strings (which is the default). A settings grid will appear, displaying the strings maintained in Resources.resx.

  4. Select the row that contains the string resource to copy by clicking in the gray row header.

  5. On the Edit menu, click Copy.

  6. On the Edit menu, click Paste.

    A copy of the string resource will be added as a new row in the string table.

Consulte também

Tarefas

Como: Adicionar ou remover recursos

Como: Adicionar ou remover recursos de seqüência de caracteres

Como: Editar recursos

Como: Associar um Editor com um tipo de recurso

Referência

Objeto My.Resources (Visual Basic)

Página de recursos, Designer de projeto

Conceitos

Acessando recursos de aplicativo (Visual Basic)

Outros recursos

Gerenciando Recursos de Aplicativo