Download 3 - Mekon

Transcript
5
Error code
Meaning
mFE_NotGroup
Value must specify a graphic object group (FMGroup)
mFE_NotTextFrame
Value must specify a text column (FMTextFrame)
mFE_NotTextObject
Object must be an object that contains text, such as a
paragraph (FMParagraph) or a flow (FMFlow)
mFE_OffsetNotFound
Offset specified for the text location couldn’t be found in
the specified paragraph or text line
mFE_OutOfRange
Specified property value is out of the legal range for the
specified property
mFE_PageFrame
Value must specify a page frame object (FMPageFrame)
mFE_ReadOnly
Property is read-only
mFE_WithinFrame
Object must be moved to a different frame first
mFE_WrongProduct
Current FrameMaker product doesn’t support the
operation
Examples
See the example for GetPropVals.
SetTextProps
Sets the text properties (such as the format tag, font family, and size) for a text range.
Synopsis
SetTextProps(textRange,
Properties) As Long
Arguments
textRange
A udtTextRange that expresses the text range to set properties to
Properties
The property list
Returns
mFE_Success
if it succeeds, or one of the following error codes:
Error code
Meaning
mFE_BadName
Specified name is illegal
mFE_BadRange
Specified text range is invalid
mFE_GenRuleAmbiguous
General rule in structured document was ambiguous
mFE_GenRuleConnectorExpected
General rule in structured document missing connector
mFE_GenRuleItemExpected
General rule in structured document missing rule item
FrameAC Programmer’s Guide
372