IComponentInitializer.InitializeExistingComponent(IDictionary) Método
Definição
Restaura uma instância de um componente para seu estado padrão.Restores an instance of a component to its default state.
public:
void InitializeExistingComponent(System::Collections::IDictionary ^ defaultValues);
public void InitializeExistingComponent (System.Collections.IDictionary defaultValues);
abstract member InitializeExistingComponent : System.Collections.IDictionary -> unit
Public Sub InitializeExistingComponent (defaultValues As IDictionary)
Parâmetros
- defaultValues
- IDictionary
Um dicionário de valores de propriedade padrão, que são pares nome/valor, com os quais redefinir o estado do componente.A dictionary of default property values, which are name/value pairs, with which to reset the component's state.
Comentários
O InitializeExistingComponent método é chamado quando um designer inicializar novamente um componente existente.The InitializeExistingComponent method is called when a designer will re-initialize an existing component. Por exemplo, InitializeExistingComponent é normalmente chamado após uma operação de arrastar e soltar.For example, InitializeExistingComponent is commonly called after a drag-and-drop operation. O defaultValues parâmetro é um dicionário que contém pares de nome/valor de valores padrão que devem ser aplicados às propriedades do componente associado.The defaultValues parameter is a dictionary containing name/value pairs of default values that should be applied to properties of the associated component. Esse dicionário pode ser null se nenhum valor padrão tiver sido especificado.This dictionary may be null if no default values have been specified.
Cuidado
Ao implementar esse método, geralmente você não deve modificar as propriedades do componente além dessas recomendações encontradas em defaultValue .When implementing this method, generally you should not modify the component properties beyond those recommendations found in defaultValue. O componente existente talvez já tenha tido suas propriedades definidas pelo usuário ou por outro código de tempo de design.The existing component may already have had its properties set by the user or other design-time code.