Compartilhar via


Compositor.CreateColorGradientStop Método

Definição

Sobrecargas

CreateColorGradientStop()

Cria uma instância de CompositionColorGradientStop.

CreateColorGradientStop(Single, Color)

Cria uma instância de CompositionColorGradientStop com o deslocamento e a cor especificados.

CreateColorGradientStop()

Cria uma instância de CompositionColorGradientStop.

public:
 virtual CompositionColorGradientStop ^ CreateColorGradientStop() = CreateColorGradientStop;
/// [Windows.Foundation.Metadata.Overload("CreateColorGradientStop")]
CompositionColorGradientStop CreateColorGradientStop();
[Windows.Foundation.Metadata.Overload("CreateColorGradientStop")]
public CompositionColorGradientStop CreateColorGradientStop();
function createColorGradientStop()
Public Function CreateColorGradientStop () As CompositionColorGradientStop

Retornos

O objeto CompositionColorGradientStop criado.

Atributos

Requisitos do Windows

Família de dispositivos
Windows 10 Fall Creators Update (introduzida na 10.0.16299.0)
API contract
Windows.Foundation.UniversalApiContract (introduzida na v5.0)

Aplica-se a

CreateColorGradientStop(Single, Color)

Cria uma instância de CompositionColorGradientStop com o deslocamento e a cor especificados.

public:
 virtual CompositionColorGradientStop ^ CreateColorGradientStop(float offset, Color color) = CreateColorGradientStop;
/// [Windows.Foundation.Metadata.Overload("CreateColorGradientStopWithOffsetAndColor")]
CompositionColorGradientStop CreateColorGradientStop(float const& offset, Color const& color);
[Windows.Foundation.Metadata.Overload("CreateColorGradientStopWithOffsetAndColor")]
public CompositionColorGradientStop CreateColorGradientStop(float offset, Color color);
function createColorGradientStop(offset, color)
Public Function CreateColorGradientStop (offset As Single, color As Color) As CompositionColorGradientStop

Parâmetros

offset
Single

float

O local da parada de gradiente dentro do vetor de gradiente.

color
Color

A cor da parada de gradiente.

Retornos

O objeto CompositionColorGradientStop criado.

Atributos

Requisitos do Windows

Família de dispositivos
Windows 10 Fall Creators Update (introduzida na 10.0.16299.0)
API contract
Windows.Foundation.UniversalApiContract (introduzida na v5.0)

Aplica-se a