共用方式為


ContainerVisual 建構函式

定義

建立 ContainerVisual 類別的新執行個體。

public:
 ContainerVisual();
public ContainerVisual ();
Public Sub New ()

範例

下列範例示範如何建立 物件的新實例 ContainerVisual ,然後將子視覺物件加入其中。

// Create a ContainerVisual and add children to it.
ContainerVisual containerVisual = new ContainerVisual();
containerVisual.Children.Add(CreateDrawingVisualRectangle());
containerVisual.Children.Add(CreateDrawingVisualText());
containerVisual.Children.Add(CreateDrawingVisualEllipses());
' Create a ContainerVisual and add children to it.
Dim containerVisual As New ContainerVisual()
containerVisual.Children.Add(CreateDrawingVisualRectangle())
containerVisual.Children.Add(CreateDrawingVisualText())
containerVisual.Children.Add(CreateDrawingVisualEllipses())

適用於