/// <summary> 文档某节的Item绘制完成 </summary> /// <param name="AData">当前绘制的Data</param> /// <param name="ADrawItemIndex">Item对应的DrawItem序号</param> /// <param name="ADrawRect">Item对应的绘制区域</param> /// <param name="ADataDrawLeft">Data绘制时的Left</param> /// <param name="ADataDrawBottom">Data绘制时的Bottom</param> /// <param name="ADataScreenTop">绘制时呈现Data的Top位置</param> /// <param name="ADataScreenBottom">绘制时呈现Data的Bottom位置</param> /// <param name="ACanvas">画布</param> /// <param name="APaintInfo">绘制时的其它信息</param> protected override void DoSectionDrawItemPaintAfter(Object sender, HCCustomData aData, int aItemNo, int aDrawItemNo, RECT aDrawRect, int aDataDrawLeft, int aDataDrawRight, int aDataDrawBottom, int aDataScreenTop, int aDataScreenBottom, HCCanvas aCanvas, PaintInfo aPaintInfo) { if ((!FHideTrace) && (FTraceCount > 0)) // 显示痕迹且有痕迹 { HCCustomItem vItem = aData.Items[aItemNo]; if (vItem.StyleNo > HCStyle.Null) { DeItem vDeItem = vItem as DeItem; if (vDeItem.StyleEx != StyleExtra.cseNone) // 添加批注 { HCDrawAnnotateDynamic vDrawAnnotate = new HCDrawAnnotateDynamic(); vDrawAnnotate.DrawRect = aDrawRect; vDrawAnnotate.Title = vDeItem.GetHint(); vDrawAnnotate.Text = aData.GetDrawItemText(aDrawItemNo); this.AnnotatePre.AddDrawAnnotate(vDrawAnnotate); } } } if ((FPageBlankTip != "") && (aData is HCPageData)) { if (aDrawItemNo < aData.DrawItems.Count - 1) { if (aData.Items[aData.DrawItems[aDrawItemNo + 1].ItemNo].PageBreak) { DrawBlankTip_(aDataDrawLeft, aDrawRect.Top + aDrawRect.Height + aData.GetLineBlankSpace(aDrawItemNo), aDataDrawRight, aDataDrawBottom, aCanvas); } } else { DrawBlankTip_(aDataDrawLeft, aDrawRect.Top + aDrawRect.Height + aData.GetLineBlankSpace(aDrawItemNo), aDataDrawRight, aDataDrawBottom, aCanvas); } } base.DoSectionDrawItemPaintAfter(sender, aData, aItemNo, aDrawItemNo, aDrawRect, aDataDrawLeft, aDataDrawRight, aDataDrawBottom, aDataScreenTop, aDataScreenBottom, aCanvas, aPaintInfo); }
/// <summary> 文档某节的Item绘制完成 </summary> /// <param name="AData">当前绘制的Data</param> /// <param name="ADrawItemIndex">Item对应的DrawItem序号</param> /// <param name="ADrawRect">Item对应的绘制区域</param> /// <param name="ADataDrawLeft">Data绘制时的Left</param> /// <param name="ADataDrawBottom">Data绘制时的Bottom</param> /// <param name="ADataScreenTop">绘制时呈现Data的Top位置</param> /// <param name="ADataScreenBottom">绘制时呈现Data的Bottom位置</param> /// <param name="ACanvas">画布</param> /// <param name="APaintInfo">绘制时的其它信息</param> protected override void DoSectionDrawItemPaintAfter(Object sender, HCCustomData aData, int aDrawItemNo, RECT aDrawRect, int aDataDrawLeft, int aDataDrawBottom, int aDataScreenTop, int aDataScreenBottom, HCCanvas aCanvas, PaintInfo aPaintInfo) { if (FTraceCount > 0) // 显示批注 { HCCustomItem vItem = aData.Items[aData.DrawItems[aDrawItemNo].ItemNo]; if (vItem.StyleNo > HCStyle.Null) { DeItem vDeItem = vItem as DeItem; if (vDeItem.StyleEx != StyleExtra.cseNone) // 添加批注 { HCDrawAnnotateDynamic vDrawAnnotate = new HCDrawAnnotateDynamic(); vDrawAnnotate.DrawRect = aDrawRect; vDrawAnnotate.Title = vDeItem.GetHint(); vDrawAnnotate.Text = aData.GetDrawItemText(aDrawItemNo); this.AnnotatePre.AddDrawAnnotate(vDrawAnnotate); } } } base.DoSectionDrawItemPaintAfter(sender, aData, aDrawItemNo, aDrawRect, aDataDrawLeft, aDataDrawBottom, aDataScreenTop, aDataScreenBottom, aCanvas, aPaintInfo); }