extendedattribute.cs
来自「工作流的基本资料(文档资料」· CS 代码 · 共 52 行
CS
52 行
using System;
using System.Collections;
using com.use.wfp.util;
namespace com.use.wfp.xpdl.elements
{
/// <summary>
/// ExtendedAttribute 的摘要说明。
/// </summary>
public class ExtendedAttribute:BaseElement
{
private IList nodes;
public IList GetNodes()
{
return GetChildren(nodes, out nodes);
}
public Node GetNodeByName(String name)
{
if(nodes == null){
GetNodes();
}
foreach(Node node in nodes){
if(node.GetName().Equals(name)){
return node;
}
}
throw new ObjectNotFound("Node Not Found! Name = " + name);
}
private string Text;
new public string GetText()
{
return base.GetText();
}
/// <remarks/>
private string Name;
public String GetName()
{
return GetAttribute(Name, out Name, "Name");
}
/// <remarks/>
private string Value;
public String GetValue()
{
return GetAttribute(Value, out Value, "Value");
}
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?