VisualStyleRenderer.GetBackgroundContentRectangle Metoda

Definicja

Zwraca obszar zawartości dla tła bieżącego elementu stylu wizualizacji.

public:
 System::Drawing::Rectangle GetBackgroundContentRectangle(System::Drawing::IDeviceContext ^ dc, System::Drawing::Rectangle bounds);
public System.Drawing.Rectangle GetBackgroundContentRectangle (System.Drawing.IDeviceContext dc, System.Drawing.Rectangle bounds);
member this.GetBackgroundContentRectangle : System.Drawing.IDeviceContext * System.Drawing.Rectangle -> System.Drawing.Rectangle
Public Function GetBackgroundContentRectangle (dc As IDeviceContext, bounds As Rectangle) As Rectangle

Parametry

dc
IDeviceContext

Ta IDeviceContext operacja będzie używana.

bounds
Rectangle

Obiekt Rectangle , który zawiera cały obszar tła bieżącego elementu stylu wizualizacji.

Zwraca

Rectangle

Element Rectangle , który zawiera obszar zawartości tła bieżącego elementu stylu wizualizacji.

Wyjątki

dc to null.

Uwagi

Styl wizualizacji może definiować obszar zawartości w każdym obrazie tła. Jest to obszar, w którym można umieścić zawartość, taką jak tekst i ikony, bez zastępowania obramowań tła. Ta metoda używa danego obszaru tła do obliczania obszaru zawartości dla bieżącego elementu stylu wizualizacji.

Dotyczy