示例#1
0
 // ------------------------------------------------------------------
 // Constructor.
 //
 //      paragraph - Paragraph associated with this object.
 // ------------------------------------------------------------------
 internal FigureParaClient(FigureParagraph paragraph) : base(paragraph)
 {
 }
示例#2
0
 /// <summary> 
 /// Constructor.
 /// </summary>
 /// <param name="dcp">
 /// Figure object's character position. 
 /// </param>
 /// <param name="para"> 
 /// Paragraph associated with figure object. 
 /// </param>
 internal FigureObject(int dcp, FigureParagraph para) 
     : base(dcp, para)
 {
 }
示例#3
0
 /// <summary> 
 /// GetDurFigureAnchor
 /// </summary> 
 /// <param name="paraFigure">
 /// IN: FigureParagraph for which we require anchor dur
 /// </param>
 /// <param name="fswdir"> 
 /// IN: current direction
 /// </param> 
 /// <param name="dur"> 
 /// OUT: distance from the beginning of the line to the anchor
 /// </param> 
 internal void GetDurFigureAnchor(
     FigureParagraph paraFigure,
     uint fswdir,
     out int dur) 
 {
     int cpFigure = TextContainerHelper.GetCPFromElement(_paraClient.Paragraph.StructuralCache.TextContainer, paraFigure.Element, ElementEdge.BeforeStart); 
     int dcpFigure = cpFigure - _cpPara; 
     double distance = _line.GetDistanceFromCharacterHit(new CharacterHit(dcpFigure, 0));
     dur = TextDpi.ToTextDpi(distance); 
 }