Пример #1
0
		/// <summary>
		///   建立文字繪圖物件
		/// </summary>
		/// <param name="point">文字繪圖物件的座標位置</param>
		/// <param name="text">繪圖文字內容</param>
		/// <param name="dataStream">資料串流編號</param>
		/// <returns>返回值: ITextObject 介面</returns>
		public ITextObject Create(ChartPoint point, string text, int dataStream) {
			TextObject cTextObject = CreateObject(point, text);
			cTextObject.DataStream = dataStream;
			AddTextObject(cTextObject);

			return cTextObject;
		}
Пример #2
0
		/// <summary>
		///   建立文字繪圖物件
		/// </summary>
		/// <param name="point">文字繪圖物件的座標位置</param>
		/// <param name="text">繪圖文字內容</param>
		/// <param name="onSameSubchart">是否在同一個副圖中</param>
		/// <returns>返回值: ITextObject 介面</returns>
		public ITextObject Create(ChartPoint point, string text, bool onSameSubchart) {
			TextObject cTextObject = CreateObject(point, text);
			cTextObject.OnSameSubchart = onSameSubchart;
			AddTextObject(cTextObject);

			return cTextObject;
		}
Пример #3
0
		private TextObject CreateObject(ChartPoint point, string text) {
			TextObject cObject = new TextObject();
			cObject.Location = point;
			cObject.Text = text;
			cObject.DrawingSourceFlag = 1;
			cObject.BGColor = __cProperty.BackgroundColor;
			cObject.Color = __cProperty.ForeColor;
			cObject.Size = __cProperty.FontSize;
			cObject.FontName = __cProperty.FontName;

			return cObject;
		}
Пример #4
0
		/// <summary>
		///   建立文字繪圖物件
		/// </summary>
		/// <param name="point">文字繪圖物件的座標位置</param>
		/// <param name="text">繪圖文字內容</param>
		/// <returns>返回值: ITextObject 介面</returns>
		public ITextObject Create(ChartPoint point, string text) {
			TextObject cTextObject = CreateObject(point, text);
			AddTextObject(cTextObject);

			return cTextObject;
		}
Пример #5
0
		/// <summary>
		///   比較相等方法
		/// </summary>
		/// <param name="other">ChartPoint 結構</param>
		/// <returns>返回值: true=相等, false=不相等</returns>
		public bool Equals(ChartPoint other) {
			return this.__dPrice == other.__dPrice && (this.__iBarNumber == other.__iBarNumber || this.__cTime == other.__cTime);
		}