예제 #1
0
파일: item.cs 프로젝트: zhangandding/dp2
        // 给数组中设值
        public void SetValue(string strName, int nValue)
        {
            ItemWidth width = m_document.widthList.GetItemWidth(this.GetLevel());

            if (width != null)
            {
                width.SetValue(strName, nValue);
            }
        }
예제 #2
0
파일: item.cs 프로젝트: zhangandding/dp2
        public PartWidth GetPartWidth(string strName)
        {
            ItemWidth width = m_document.widthList.GetItemWidth(this.GetLevel());

            if (width == null)
            {
                return(null);
            }

            return(width.GetPartWidth(strName));
        }
예제 #3
0
파일: item.cs 프로젝트: zhangandding/dp2
        // 从数组中取值
        public int GetValue(string strName)
        {
            ItemWidth width = m_document.widthList.GetItemWidth(this.GetLevel());

            if (width == null)
            {
                return(-1);
            }

            return(width.GetValue(strName));
        }
예제 #4
0
파일: ItemWidthList.cs 프로젝트: zszqwe/dp2
 public void Add(ItemWidth width)
 {
     InnerList.Add(width);
 }
예제 #5
0
		public void Add(ItemWidth width)
		{
			InnerList.Add(width);
		}