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
    }
};

适用于