HTML Component Library
ContentsIndexHome
THtCommentElement Members Public Methods
Public Methods
 
Name 
Description 
 
Absoulute position in document among line elements (chars, images)  
 
Absoulute position in surface coordinates  
 
Add 
Add E to child elements  
 
Create and add child element of specified class  
 
Apply element user size (FUserWidth, FUserHeight) to element style. Usually called after resize  
 
 
 
Start element sizing. Set document SizingElement and SizingPointType  
 
Calc 
Main layout calculation procedure  
 
Calculate layout of child elements (called by Calc)  
 
 
 
Returns char position for text element in document coordinates.  
 
Translate point from element local coordinates to destination canvas coordinates. For double buffered drawing destination canvas is temporary bitmap (not control canvas)  
 
Translate point from element local coordinates to document coordinates.  
 
 
 
 
 
Find element at point (x, y)  
 
 
 
Draw 
Main drawing procedure  
 
Draw procedure for block elements  
 
Draw disigner selection border using Document.DesignerSelectionColor. For resizing element draw sizing points.  
 
End element dragging  
 
 
 
Returns first text run of text element. For non-text elements return one virtual run.  
 
Events 
 
 
 
Insert E after EAfter element. EAfter should be child of current element.  
 
Insert E before EBefore element. EBefore should be child of current element.  
 
Is element visible (in current drawing area)  
 
Returns true for line elements - text or image elements with position = static and flow = none.  
 
Returns last text run of text element. For non-text elements return same run as FirstRun  
 
 
 
 
 
 
 
Next 
Returns next sibling element  
 
Returns next element in DOM tree  
 
Returns next line element - text or image element with position = static and flow = none.  
 
Returns next non-empty sibling element Empty elements are BR and text elements with blank or empty content.  
 
Other 
 
Parse attribute. Called by ParseAttributes.  
 
Parse attributes. Called in primary parsing stage.  
 
Returns previous sibling element  
 
Returns previous element in DOM tree  
 
Returns previous line element - text or image element with position = static and flow = none.  
 
Returns previous non-empty sibling element Empty elements are BR and text elements with blank or empty content.  
 
Return rects for inline and inline-block elements  
 
Reset flow FirstLinetoPrint index. Used for running elements which should be printed on every page  
 
Reset StyleCalculated flag and set Document.Changed flag. Usually called when style should be recalculated  
Copyright (c) 2015. All rights reserved.