Einhugur OpenDocument Text Plugin for Xojo |

# Paragraph.SetLanguageCode Method

Sets language code for the Paragraph and optionally all runs under the paragraph.

SetLanguageCode(
code as String,
setOnRuns as Boolean)

#### Parameters

code
  The code to set. (For example de-DE for Germany, is-IS for Iceland, en-US for English American, etc)
setOnRuns
  If set to true then code will be set on all runs on the Paragraph.

#### Remarks

Language codes are formed as de-DE and is-IS for Iceland for example.
Note that Runs under the paragraphs do not always have same Language code as the paragraph it self. Which is why there is no setter for this property but instead there is a SetLanguageCode method.
Once a Paragraph has language code then the plugin will attempt to default new runs created on the paragraph to the set language code from the paragraph.

#### See Also

Paragraph Class