ElementHost.GetPreferredSize(Size) Méthode

Définition

Remplace l’implémentation GetPreferredSize(Size) de classe de base pour fournir un comportement de disposition correct pour les éléments Windows Presentation Foundation hébergés (WPF).

public:
 override System::Drawing::Size GetPreferredSize(System::Drawing::Size proposedSize);
public override System.Drawing.Size GetPreferredSize (System.Drawing.Size proposedSize);
override this.GetPreferredSize : System.Drawing.Size -> System.Drawing.Size
Public Overrides Function GetPreferredSize (proposedSize As Size) As Size

Paramètres

proposedSize
Size

Zone de taille personnalisée pour un élément WPF.

Retours

Le Size calculé par le contrôle ElementHost, selon les contraintes spécifiées par proposedSize.

S’applique à

Voir aussi