 | OcrPageIteratorGetParagraphInfo Method |
Get information about the current paragraph, if available.
Namespace: Patagames.OcrAssembly: Patagames.Ocr (in Patagames.Ocr.dll) Version: 4.6.411
Syntaxpublic void GetParagraphInfo(
out ParagraphJustification justification,
out bool isListItem,
out bool isCrown,
out int firstLineIndent
)
Public Sub GetParagraphInfo (
<OutAttribute> ByRef justification As ParagraphJustification,
<OutAttribute> ByRef isListItem As Boolean,
<OutAttribute> ByRef isCrown As Boolean,
<OutAttribute> ByRef firstLineIndent As Integer
)
public:
void GetParagraphInfo(
[OutAttribute] ParagraphJustification% justification,
[OutAttribute] bool% isListItem,
[OutAttribute] bool% isCrown,
[OutAttribute] int% firstLineIndent
)
member GetParagraphInfo :
justification : ParagraphJustification byref *
isListItem : bool byref *
isCrown : bool byref *
firstLineIndent : int byref -> unit public void GetParagraphInfo(
/** @attribute OutAttribute */ /** @ref */ParagraphJustification justification,
/** @attribute OutAttribute */ /** @ref */boolean isListItem,
/** @attribute OutAttribute */ /** @ref */boolean isCrown,
/** @attribute OutAttribute */ /** @ref */int firstLineIndent
)
function GetParagraphInfo(justification, isListItem, isCrown, firstLineIndent);
Parameters
- justification ParagraphJustification
- LEFT if ragged right, or fully justified and script is left-to-right.
RIGHT if ragged left, or fully justified and script is right-to-left.
Unknown if it looks like source code or we have very few lines.
- isListItem Boolean
- true if we believe this is a member of an ordered or unordered list.
- isCrown Boolean
- true if the first line of the paragraph is aligned with the other
lines of the paragraph even though subsequent paragraphs have first
line indents.This typically indicates that this is the continuation
of a previous paragraph or that it is the very first paragraph in
the chapter.
- firstLineIndent Int32
- See remarks for details.
Remarks
first line indent -
For LEFT aligned paragraphs, the first text line of paragraphs of
this kind are indented this many pixels from the left edge of the
rest of the paragraph.
for RIGHT aligned paragraphs, the first text line of paragraphs of
this kind are indented this many pixels from the right edge of the
rest of the paragraph.
Note |
|---|
| This value may be negative. |
Note |
|---|
| if is_crown == true, the first line of this paragraph is
actually flush, and first_line_indent is set to the "common"
first line indent for subsequent paragraphs in this block
of text. |
See Also