CompositionDrawingSurface Klasse

Definition

Eine Zeichnungsoberfläche für die Interoperabilität mit Direct2D oder Direct3D.

public ref class CompositionDrawingSurface sealed : CompositionObject, ICompositionSurface
public ref class CompositionDrawingSurface : CompositionObject, ICompositionSurface
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 131072)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class CompositionDrawingSurface final : CompositionObject, ICompositionSurface
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 131072)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class CompositionDrawingSurface : CompositionObject, ICompositionSurface
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 131072)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class CompositionDrawingSurface : CompositionObject, ICompositionSurface
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 131072)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public class CompositionDrawingSurface : CompositionObject, ICompositionSurface
Public NotInheritable Class CompositionDrawingSurface
Inherits CompositionObject
Implements ICompositionSurface
Public Class CompositionDrawingSurface
Inherits CompositionObject
Implements ICompositionSurface
Vererbung
Object Platform::Object IInspectable CompositionObject CompositionDrawingSurface
Abgeleitet
Attribute
Implementiert

Windows-Anforderungen

Gerätefamilie
Windows 10 (eingeführt in 10.0.10586.0)
API contract
Windows.Foundation.UniversalApiContract (eingeführt in v2.0)

Beispiele

Sehen Sie sich das Codebeispiel in Composition native Interoperation mit DirectX und Direct2D an.

Hinweise

CompositionDrawingSurface ist eine Oberfläche mit fester Größe, die mit gerendert werden kann:

Versionsverlauf

Windows-Version SDK-Version Wertschöpfung
1703 15063 Größe ändern
1703 15063 Scroll(PointInt32)
1703 15063 Scroll(PointInt32,RectInt32)
1703 15063 ScrollWithClip(PointInt32;RectInt32)
1703 15063 ScrollWithClip(PointInt32,RectInt32,RectInt32,RectInt32)
1703 15063 SizeInt32

Eigenschaften

AlphaMode

Der Alphamodus der Zeichnungsoberfläche.

Comment

Eine Zeichenfolge, die dem CompositionObject zugeordnet werden soll.

(Geerbt von CompositionObject)
Compositor

Der Compositor , der zum Erstellen dieses CompositionObject verwendet wird.

(Geerbt von CompositionObject)
Dispatcher

Der Dispatcher für das CompositionObject.

(Geerbt von CompositionObject)
DispatcherQueue

Ruft den DispatcherQueue für das CompostionObject ab.

(Geerbt von CompositionObject)
ImplicitAnimations

Die Auflistung impliziter Animationen, die diesem Objekt angefügt sind.

(Geerbt von CompositionObject)
PixelFormat

Das Pixelformat der Zeichnungsoberfläche.

Properties

Die Auflistung von Eigenschaften, die dem CompositionObject zugeordnet sind.

(Geerbt von CompositionObject)
Size

Die Größe der Zeichenfläche.

SizeInt32

Die Größe der Zeichenfläche.

Methoden

Close()

Schließt das CompositionObject und gibt Systemressourcen frei.

(Geerbt von CompositionObject)
ConnectAnimation(String, CompositionAnimation)

Verbindet und Animation.

(Geerbt von CompositionObject)
DisconnectAnimation(String)

Trennt eine Animation.

(Geerbt von CompositionObject)
Dispose()

Führt anwendungsspezifische Aufgaben durch, die mit der Freigabe, der Zurückgabe oder dem Zurücksetzen von nicht verwalteten Ressourcen zusammenhängen.

(Geerbt von CompositionObject)
PopulatePropertyInfo(String, AnimationPropertyInfo)

Definiert eine Eigenschaft, die animiert werden kann.

(Geerbt von CompositionObject)
Resize(SizeInt32)

Ändert die Größe der Zeichenfläche auf die angegebene Größe.

Scroll(PointInt32)

Scrollt die Zeichenfläche.

Scroll(PointInt32, RectInt32)

Scrollt die Zeichenfläche.

ScrollWithClip(PointInt32, RectInt32)

Scrollt die Zeichenfläche mithilfe des angegebenen Cliprechtecks.

ScrollWithClip(PointInt32, RectInt32, RectInt32)

Scrollt die Zeichenfläche mit dem angegebenen Cliprechteck.

StartAnimation(String, CompositionAnimation)

Verbindet eine Animation mit der angegebenen Eigenschaft des Objekts und startet die Animation.

(Geerbt von CompositionObject)
StartAnimation(String, CompositionAnimation, AnimationController)

Verbindet eine Animation mit der angegebenen Eigenschaft des Objekts und startet die Animation.

(Geerbt von CompositionObject)
StartAnimationGroup(ICompositionAnimationBase)

Startet eine Animationsgruppe.

Mit der StartAnimationGroup-Methode für CompositionObject können Sie CompositionAnimationGroup starten. Alle Animationen in der Gruppe werden gleichzeitig für das Objekt gestartet.

(Geerbt von CompositionObject)
StopAnimation(String)

Trennt eine Animation von der angegebenen Eigenschaft und beendet die Animation.

(Geerbt von CompositionObject)
StopAnimationGroup(ICompositionAnimationBase)

Beendet eine Animationsgruppe.

(Geerbt von CompositionObject)
TryGetAnimationController(String)

Gibt einen AnimationController für die Animation zurück, die für die angegebene Eigenschaft ausgeführt wird.

(Geerbt von CompositionObject)

Gilt für:

Weitere Informationen