Adobe InDesign CS3 (5.0) Object Model JS: Language

InDesign CS3

Class

Language

 The language on which to base hyphenation rules and spell checking.

QuickLinks

extractLabel, getElements, insertLabel, toSource, toSpecifier

Hierarchy

Document
Language

Properties

PropertyTypeAccessDescription
doubleQuotesstring r/wThe double quotes pair for the language.
hyphenationVendorstring r/wThe hyphenation rules source.
idnumber readonlyThe unique ID of the Language.
indexnumber readonlyThe index of the Language within its containing object.
labelstring r/wA property that can be set to any string.
namestring readonlyThe name of the Language.
parentDocument readonlyThe parent of the Language (a Document).
propertiesObject r/wA property that allows setting of several properties at the same time.
singleQuotesstring r/wThe single quotes pair for the language.
spellingVendorstring r/wThe spell-checking source.

Methods

Instances

string extractLabel (key: string)
Gets the label value associated with the specified key.

ParameterTypeDescription
keystringThe key.

Array of Language getElements ()
Resolves the object specifier, creating an array of object references.

void insertLabel (key: string, value: string)
Sets the label to the value associated with the specified key.

ParameterTypeDescription
keystringThe key.
valuestringThe value.

string toSource ()
Generates a string which, if executed, will return the Language.

string toSpecifier ()
Retrieves the object specifier.

Element of

ChangeGrepPreference.appliedLanguage

ChangeTextPreference.appliedLanguage

Character.appliedLanguage

CharacterStyle.appliedLanguage

FindGrepPreference.appliedLanguage

FindTextPreference.appliedLanguage

InsertionPoint.appliedLanguage

Line.appliedLanguage

Paragraph.appliedLanguage

ParagraphStyle.appliedLanguage

Story.appliedLanguage

Text.appliedLanguage

TextColumn.appliedLanguage

TextDefault.appliedLanguage

TextStyleRange.appliedLanguage

Word.appliedLanguage

XmlStory.appliedLanguage

Used in:

array of Language Languages.itemByRange (from: any, to: any)

Language Languages.nextItem (obj: Language)

Language Languages.previousItem (obj: Language)

Return

Array of Language Language.getElements ()

Language Languages.anyItem ()

Array of Language Languages.everyItem ()

Language Languages.firstItem ()

Language Languages.item (index: any)

Language Languages.itemByID (id: number)

Language Languages.itemByName (name: string)

Array of Language Languages.itemByRange (from: any, to: any)

Language Languages.lastItem ()

Language Languages.middleItem ()

Language Languages.nextItem (obj: Language)

Language Languages.previousItem (obj: Language)

Jongware, 27-Jun-2010 v3.0.3dContents :: Index