共用方式為


Flowchart.Nodes 屬性

定義

取得或設定流程圖內含 FlowNode 物件的集合。

public:
 property System::Collections::ObjectModel::Collection<System::Activities::Statements::FlowNode ^> ^ Nodes { System::Collections::ObjectModel::Collection<System::Activities::Statements::FlowNode ^> ^ get(); };
[System.Windows.Markup.DependsOn("StartNode")]
public System.Collections.ObjectModel.Collection<System.Activities.Statements.FlowNode> Nodes { get; }
[<System.Windows.Markup.DependsOn("StartNode")>]
member this.Nodes : System.Collections.ObjectModel.Collection<System.Activities.Statements.FlowNode>
Public ReadOnly Property Nodes As Collection(Of FlowNode)

屬性值

FlowNode 物件的集合。

屬性

範例

下列程式碼範例將示範如何建立 Flowchart 活動。 此範例來自 使用 TryCatch 的流程圖活動中的錯誤處理 範例。

Flowchart flowChart = new Flowchart
{
    DisplayName = "Promotional Discount Calculation",
    Variables = {discount, promo, numberOfKids},
    StartNode = promoCodeSwitch,
    Nodes =
    {
        promoCodeSwitch,
        singleStep,
        mnkStep,
        mwkStep,
        discountDefault,
        flowDecision,
        discountApplied,
        discountNotApplied
    }
};

適用於