# InputFormat Object

> The InputFormat object represents all formatting attributes at the current text input position. If text is selected and the selection has no common value for a certain attribute, the corresponding property is null.

- **Product:** DS Server
- **Section:** Reference
- **Kind:** Object
- **Introduced:** 28.0
- **Path:** DS Server > Reference > JavaScript API > InputFormat Object
- **Web URL:** https://docs.textcontrol.com/ds-server/reference/javascript/inputformat/
- **LLMs URL:** https://docs.textcontrol.com/ds-server/reference/javascript/inputformat/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/ds-server/reference/javascript/inputformat/llms-full.txt

---

## On This Page

- [Description](https://docs.textcontrol.com/ds-server/reference/javascript/inputformat/#description)
- [Syntax](https://docs.textcontrol.com/ds-server/reference/javascript/inputformat/#syntax)
- [Examples](https://docs.textcontrol.com/ds-server/reference/javascript/inputformat/#examples)
- [Members](https://docs.textcontrol.com/ds-server/reference/javascript/inputformat/#members)

---

## In This Section

- [Javascript: InputFormat.addEventListener Method](https://docs.textcontrol.com/ds-server/reference/javascript/inputformat/addeventlistener-method/llms.txt): The addEventListener function registers event listener functions on the InputFormat object.
- [Javascript: InputFormat.getAllFrameLines Method](https://docs.textcontrol.com/ds-server/reference/javascript/inputformat/getallframelines-method/llms.txt): Gets a value specifying whether all frame lines, including all inner frame lines, are set for the selected text.
- [Javascript: InputFormat.getBold Method](https://docs.textcontrol.com/ds-server/reference/javascript/inputformat/getbold-method/llms.txt): Gets a value specifying whether text is bold at the current input position.
- [Javascript: InputFormat.getBottomAligned Method](https://docs.textcontrol.com/ds-server/reference/javascript/inputformat/getbottomaligned-method/llms.txt): Gets a value specifying whether text is bottom aligned at the current input position.
- [Javascript: InputFormat.getBottomDistance Method](https://docs.textcontrol.com/ds-server/reference/javascript/inputformat/getbottomdistance-method/llms.txt): Gets bottom's paragraph distance, in twips, at the current input position.
- [Javascript: InputFormat.getBoxFrame Method](https://docs.textcontrol.com/ds-server/reference/javascript/inputformat/getboxframe-method/llms.txt): Gets a value specifying whether there is a complete frame around the text.
- [Javascript: InputFormat.getBulletCharacter Method](https://docs.textcontrol.com/ds-server/reference/javascript/inputformat/getbulletcharacter-method/llms.txt): Gets the bullet character at the current input position.
- [Javascript: InputFormat.getBulletedList Method](https://docs.textcontrol.com/ds-server/reference/javascript/inputformat/getbulletedlist-method/llms.txt): Gets a value specifying whether there is a bulleted list at the current input position.
- [Javascript: InputFormat.getCentered Method](https://docs.textcontrol.com/ds-server/reference/javascript/inputformat/getcentered-method/llms.txt): Gets a value specifying whether text is centered at the current input position.
- [Javascript: InputFormat.getFontFamily Method](https://docs.textcontrol.com/ds-server/reference/javascript/inputformat/getfontfamily-method/llms.txt): Gets the font family at the current input position.
- [Javascript: InputFormat.getFontSize Method](https://docs.textcontrol.com/ds-server/reference/javascript/inputformat/getfontsize-method/llms.txt): Gets the font's size, in points, at the current input position.
- [Javascript: InputFormat.getFrameFillColor Method](https://docs.textcontrol.com/ds-server/reference/javascript/inputformat/getframefillcolor-method/llms.txt): Gets the color used to display the frame fill color at the current input position.
- [Javascript: InputFormat.getFrameLineColor Method](https://docs.textcontrol.com/ds-server/reference/javascript/inputformat/getframelinecolor-method/llms.txt): Gets the color used to display the color of frame lines at the current text input position.
- [Javascript: InputFormat.getFrameLineWidth Method](https://docs.textcontrol.com/ds-server/reference/javascript/inputformat/getframelinewidth-method/llms.txt): Gets the line width, in twips, of the paragraph's or table's frame at the current input position.
- [Javascript: InputFormat.getHangingIndent Method](https://docs.textcontrol.com/ds-server/reference/javascript/inputformat/gethangingindent-method/llms.txt): Gets the hanging indent, in twips, at the current input position.
- [Javascript: InputFormat.getInnerHorizontalFrameLines Method](https://docs.textcontrol.com/ds-server/reference/javascript/inputformat/getinnerhorizontalframelines-method/llms.txt): Gets a value specifying whether all inner horizontal frame lines are set for the selected text.
- [Javascript: InputFormat.getInnerVerticalFrameLines Method](https://docs.textcontrol.com/ds-server/reference/javascript/inputformat/getinnerverticalframelines-method/llms.txt): Gets a value specifying whether all inner vertical frame lines are set for the selected text.
- [Javascript: InputFormat.getItalic Method](https://docs.textcontrol.com/ds-server/reference/javascript/inputformat/getitalic-method/llms.txt): Gets a value specifying whether the text is italic at the current input position.
- [Javascript: InputFormat.getJustified Method](https://docs.textcontrol.com/ds-server/reference/javascript/inputformat/getjustified-method/llms.txt): Gets a value specifying whether text is justified at the current input position.
- [Javascript: InputFormat.getLeftAligned Method](https://docs.textcontrol.com/ds-server/reference/javascript/inputformat/getleftaligned-method/llms.txt): Gets a value specifying whether text is left aligned at the current input position.
- [Javascript: InputFormat.getLeftFrameLine Method](https://docs.textcontrol.com/ds-server/reference/javascript/inputformat/getleftframeline-method/llms.txt): Gets a value specifying whether there is a frame line at the left side of the text.
- [Javascript: InputFormat.getLeftIndent Method](https://docs.textcontrol.com/ds-server/reference/javascript/inputformat/getleftindent-method/llms.txt): Gets the left indent, in twips, at the current input position.
- [Javascript: InputFormat.getLeftToRight Method](https://docs.textcontrol.com/ds-server/reference/javascript/inputformat/getlefttoright-method/llms.txt): Gets a value specifying whether the writung direction is left-to-right at the current input position.
- [Javascript: InputFormat.getLinespacing Method](https://docs.textcontrol.com/ds-server/reference/javascript/inputformat/getlinespacing-method/llms.txt): Gets the line spacing, in percent, at the current input position.
- [Javascript: InputFormat.getNumberedList Method](https://docs.textcontrol.com/ds-server/reference/javascript/inputformat/getnumberedlist-method/llms.txt): Gets a value specifying whether there is a numbered list at the current input position.
- [Javascript: InputFormat.getNumberedListFormat Method](https://docs.textcontrol.com/ds-server/reference/javascript/inputformat/getnumberedlistformat-method/llms.txt): Gets the number format for a numbered list at the current input position.
- [Javascript: InputFormat.getNumberFormats Method](https://docs.textcontrol.com/ds-server/reference/javascript/inputformat/getnumberformats-method/llms.txt): Gets an array of all supported number formats for numbered and structured lists.
- [Javascript: InputFormat.getRightAligned Method](https://docs.textcontrol.com/ds-server/reference/javascript/inputformat/getrightaligned-method/llms.txt): Gets a value specifying whether text is right aligned at the current input position.
- [Javascript: InputFormat.getRightFrameLine Method](https://docs.textcontrol.com/ds-server/reference/javascript/inputformat/getrightframeline-method/llms.txt): Gets a value specifying whether there is a frame line at the right side of the text.
- [Javascript: InputFormat.getRightIndent Method](https://docs.textcontrol.com/ds-server/reference/javascript/inputformat/getrightindent-method/llms.txt): Gets the right indent, in twips, at the current input position.
- [Javascript: InputFormat.getRightToLeft Method](https://docs.textcontrol.com/ds-server/reference/javascript/inputformat/getrighttoleft-method/llms.txt): Gets a value specifying whether the writing direction is right-to-left at the current input position.
- [Javascript: InputFormat.getStrikeout Method](https://docs.textcontrol.com/ds-server/reference/javascript/inputformat/getstrikeout-method/llms.txt): Gets a value specifying whether the text is strikeout at the current input position.
- [Javascript: InputFormat.getStructuredList Method](https://docs.textcontrol.com/ds-server/reference/javascript/inputformat/getstructuredlist-method/llms.txt): Gets a value specifying whether there is a structured list at the current input position.
- [Javascript: InputFormat.getStructuredListFormat Method](https://docs.textcontrol.com/ds-server/reference/javascript/inputformat/getstructuredlistformat-method/llms.txt): Gets the number format for a structured list at the current input position.
- [Javascript: InputFormat.getStructureLevel Method](https://docs.textcontrol.com/ds-server/reference/javascript/inputformat/getstructurelevel-method/llms.txt): Gets the structure level of all selected paragraphs. The level can be between 0 and 10. A level of 0 indicates that the paragraph belongs to the body of the document.
- [Javascript: InputFormat.getStyleName Method](https://docs.textcontrol.com/ds-server/reference/javascript/inputformat/getstylename-method/llms.txt): Gets the formatting style name at the current input position.
- [Javascript: InputFormat.getStyleNames Method](https://docs.textcontrol.com/ds-server/reference/javascript/inputformat/getstylenames-method/llms.txt): Returns an array of the names of all formatting styles, the document contains.
- [Javascript: InputFormat.getSubscript Method](https://docs.textcontrol.com/ds-server/reference/javascript/inputformat/getsubscript-method/llms.txt): Gets a value specifying whether text is subscript at the current input position.
- [Javascript: InputFormat.getSuperscript Method](https://docs.textcontrol.com/ds-server/reference/javascript/inputformat/getsuperscript-method/llms.txt): Gets a value specifying whether text is superscript at the current input position.
- [Javascript: InputFormat.getSupportedFontFamilies Method](https://docs.textcontrol.com/ds-server/reference/javascript/inputformat/getsupportedfontfamilies-method/llms.txt): Returns an array of strings specifying all supported fonts.
- [Javascript: InputFormat.getSupportedFontSizes Method](https://docs.textcontrol.com/ds-server/reference/javascript/inputformat/getsupportedfontsizes-method/llms.txt): Gets an array of strings specifying all possible font sizes for the font at the text input position. If the font is free scalable, standard sizes are returned. The return value is the list of possible font sizes. Null is returned, if the specified font is not supported or if text is selected and the selection contains several different fonts.
- [Javascript: InputFormat.getSupportedUnderlineStyles Method](https://docs.textcontrol.com/ds-server/reference/javascript/inputformat/getsupportedunderlinestyles-method/llms.txt): Gets an array of all supported underline styles.
- [Javascript: InputFormat.getTextBackColor Method](https://docs.textcontrol.com/ds-server/reference/javascript/inputformat/gettextbackcolor-method/llms.txt): Gets the color used to display the text's background color at the current input position.
- [Javascript: InputFormat.getTextColor Method](https://docs.textcontrol.com/ds-server/reference/javascript/inputformat/gettextcolor-method/llms.txt): Gets the color used to display the text at the current input position.
- [Javascript: InputFormat.getTopAligned Method](https://docs.textcontrol.com/ds-server/reference/javascript/inputformat/gettopaligned-method/llms.txt): Gets a value specifying whether text is top aligned at the current input position.
- [Javascript: InputFormat.getTopDistance Method](https://docs.textcontrol.com/ds-server/reference/javascript/inputformat/gettopdistance-method/llms.txt): Gets a top paragraph distance, in twips, at the current input position.
- [Javascript: InputFormat.getTopFrameLine Method](https://docs.textcontrol.com/ds-server/reference/javascript/inputformat/gettopframeline-method/llms.txt): Gets a value specifying whether there is a frame line at the top of the text.
- [Javascript: InputFormat.getUnderline Method](https://docs.textcontrol.com/ds-server/reference/javascript/inputformat/getunderline-method/llms.txt): Gets a value specifying whether text is underlined at the current input position.
- [Javascript: InputFormat.getUnderlineStyle Method](https://docs.textcontrol.com/ds-server/reference/javascript/inputformat/getunderlinestyle-method/llms.txt): Gets a value specifying the style at the current input position.
- [Javascript: InputFormat.getVerticallyCentered Method](https://docs.textcontrol.com/ds-server/reference/javascript/inputformat/getverticallycentered-method/llms.txt): Gets a value specifying whether text is vertically centered at the current text input position.
- [Javascript: InputFormat.removeEventListener Method](https://docs.textcontrol.com/ds-server/reference/javascript/inputformat/removeeventlistener-method/llms.txt): The removeListener function removes the specified event listener from the InputFormat object.
- [Javascript: InputFormat.setAllFrameLines Method](https://docs.textcontrol.com/ds-server/reference/javascript/inputformat/setallframelines-method/llms.txt): Sets a value specifying whether all frame lines, including all inner frame lines, are set for the selected text.
- [Javascript: InputFormat.setBold Method](https://docs.textcontrol.com/ds-server/reference/javascript/inputformat/setbold-method/llms.txt): Sets a value specifying whether text is bold at the current input position.
- [Javascript: InputFormat.setBottomAligned Method](https://docs.textcontrol.com/ds-server/reference/javascript/inputformat/setbottomaligned-method/llms.txt): Sets a value specifying whether text is bottom aligned at the current input position.
- [Javascript: InputFormat.setBottomDistance Method](https://docs.textcontrol.com/ds-server/reference/javascript/inputformat/setbottomdistance-method/llms.txt): Sets a bottom paragraph distance, in twips, at the current input position.
- [Javascript: InputFormat.setBoxFrame Method](https://docs.textcontrol.com/ds-server/reference/javascript/inputformat/setboxframe-method/llms.txt): Sets a value specifying whether there is a complete frame around the text.
- [Javascript: InputFormat.setBulletCharacter Method](https://docs.textcontrol.com/ds-server/reference/javascript/inputformat/setbulletcharacter-method/llms.txt): Sets the bullet character at the current input position.
- [Javascript: InputFormat.setBulletedList Method](https://docs.textcontrol.com/ds-server/reference/javascript/inputformat/setbulletedlist-method/llms.txt): Sets a value specifying whether there is a bulleted list at the current input position.
- [Javascript: InputFormat.setCentered Method](https://docs.textcontrol.com/ds-server/reference/javascript/inputformat/setcentered-method/llms.txt): Sets a value specifying whether text is centered at the current input position.
- [Javascript: InputFormat.setFontFamily Method](https://docs.textcontrol.com/ds-server/reference/javascript/inputformat/setfontfamily-method/llms.txt): Sets the font family at the current input position.
- [Javascript: InputFormat.setFontSize Method](https://docs.textcontrol.com/ds-server/reference/javascript/inputformat/setfontsize-method/llms.txt): Sets the font's size, in points, at the current input position.
- [Javascript: InputFormat.setFrameFillColor Method](https://docs.textcontrol.com/ds-server/reference/javascript/inputformat/setframefillcolor-method/llms.txt): Sets the color used to display the frame fill color at the current input position.
- [Javascript: InputFormat.setFrameLineColor Method](https://docs.textcontrol.com/ds-server/reference/javascript/inputformat/setframelinecolor-method/llms.txt): Sets the color used to display the color of frame lines at the current text input position.
- [Javascript: InputFormat.setFrameLineWidth Method](https://docs.textcontrol.com/ds-server/reference/javascript/inputformat/setframelinewidth-method/llms.txt): Sets the line width, in twips, of the paragraph's or table's frame at the current input position.
- [Javascript: InputFormat.setHangingIndent Method](https://docs.textcontrol.com/ds-server/reference/javascript/inputformat/sethangingindent-method/llms.txt): Sets the hanging indent, in twips, at the current input position.
- [Javascript: InputFormat.setInnerHorizontalFrameLines Method](https://docs.textcontrol.com/ds-server/reference/javascript/inputformat/setinnerhorizontalframelines-method/llms.txt): Sets a value specifying whether all inner horizontal frame lines are set for the selected text.
- [Javascript: InputFormat.setInnerVerticalFrameLines Method](https://docs.textcontrol.com/ds-server/reference/javascript/inputformat/setinnerverticalframelines-method/llms.txt): Sets a value specifying whether all inner vertical frame lines are set for the selected text.
- [Javascript: InputFormat.setItalic Method](https://docs.textcontrol.com/ds-server/reference/javascript/inputformat/setitalic-method/llms.txt): Sets a value specifying whether the text is italic at the current input position.
- [Javascript: InputFormat.setJustified Method](https://docs.textcontrol.com/ds-server/reference/javascript/inputformat/setjustified-method/llms.txt): Sets a value specifying whether text is justified at the current input position.
- [Javascript: InputFormat.setLeftAligned Method](https://docs.textcontrol.com/ds-server/reference/javascript/inputformat/setleftaligned-method/llms.txt): Sets a value specifying whether text is left aligned at the current input position.
- [Javascript: InputFormat.setLeftFrameLine Method](https://docs.textcontrol.com/ds-server/reference/javascript/inputformat/setleftframeline-method/llms.txt): Sets a value specifying whether there is a frame line at the left side of the text.
- [Javascript: InputFormat.setLeftIndent Method](https://docs.textcontrol.com/ds-server/reference/javascript/inputformat/setleftindent-method/llms.txt): Sets the left indent, in twips, at the current input position.
- [Javascript: InputFormat.setLeftToRight Method](https://docs.textcontrol.com/ds-server/reference/javascript/inputformat/setlefttoright-method/llms.txt): Sets a value specifying whether the writung direction is left-to-right at the current input position.
- [Javascript: InputFormat.setLinespacing Method](https://docs.textcontrol.com/ds-server/reference/javascript/inputformat/setlinespacing-method/llms.txt): Sets the line spacing, in percent, at the current input position.
- [Javascript: InputFormat.setNumberedList Method](https://docs.textcontrol.com/ds-server/reference/javascript/inputformat/setnumberedlist-method/llms.txt): Sets a value specifying whether there is a numbered list at the current input position.
- [Javascript: InputFormat.setNumberedListFormat Method](https://docs.textcontrol.com/ds-server/reference/javascript/inputformat/setnumberedlistformat-method/llms.txt): Sets the number format for a numbered list at the current input position.
- [Javascript: InputFormat.setRightAligned Method](https://docs.textcontrol.com/ds-server/reference/javascript/inputformat/setrightaligned-method/llms.txt): Sets a value specifying whether text is right aligned at the current input position.
- [Javascript: InputFormat.setRightFrameLine Method](https://docs.textcontrol.com/ds-server/reference/javascript/inputformat/setrightframeline-method/llms.txt): Sets a value specifying whether there is a frame line at the right side of the text.
- [Javascript: InputFormat.setRightIndent Method](https://docs.textcontrol.com/ds-server/reference/javascript/inputformat/setrightindent-method/llms.txt): Sets the right indent, in twips, at the current input position.
- [Javascript: InputFormat.setRightToLeft Method](https://docs.textcontrol.com/ds-server/reference/javascript/inputformat/setrighttoleft-method/llms.txt): Sets a value specifying whether the writing direction is right-to-left at the current input position.
- [Javascript: InputFormat.setStrikeout Method](https://docs.textcontrol.com/ds-server/reference/javascript/inputformat/setstrikeout-method/llms.txt): Sets a value specifying whether the text is strikeout at the current input position.
- [Javascript: InputFormat.setStructuredList Method](https://docs.textcontrol.com/ds-server/reference/javascript/inputformat/setstructuredlist-method/llms.txt): Sets a value specifying whether there is a structured list at the current input position.
- [Javascript: InputFormat.setStructuredListFormat Method](https://docs.textcontrol.com/ds-server/reference/javascript/inputformat/setstructuredlistformat-method/llms.txt): Sets the number format for a structured list at the current input position.
- [Javascript: InputFormat.setStructureLevel Method](https://docs.textcontrol.com/ds-server/reference/javascript/inputformat/setstructurelevel-method/llms.txt): Sets the structure level of all selected paragraphs. The level can be between 0 and 10. A level of 0 indicates that the paragraph belongs to the body of the document.
- [Javascript: InputFormat.setStyleName Method](https://docs.textcontrol.com/ds-server/reference/javascript/inputformat/setstylename-method/llms.txt): Sets the formatting style name at the current input position.
- [Javascript: InputFormat.setSubscript Method](https://docs.textcontrol.com/ds-server/reference/javascript/inputformat/setsubscript-method/llms.txt): Sets a value specifying whether text is subscript at the current input position.
- [Javascript: InputFormat.setSuperscript Method](https://docs.textcontrol.com/ds-server/reference/javascript/inputformat/setsuperscript-method/llms.txt): Sets a value specifying whether text is superscript at the current input position.
- [Javascript: InputFormat.setTextBackColor Method](https://docs.textcontrol.com/ds-server/reference/javascript/inputformat/settextbackcolor-method/llms.txt): Sets the color used to display the text background color at the current input position.
- [Javascript: InputFormat.setTextColor Method](https://docs.textcontrol.com/ds-server/reference/javascript/inputformat/settextcolor-method/llms.txt): Sets the color used to display the text at the current input position as a CSS color string.
- [Javascript: InputFormat.setTopAligned Method](https://docs.textcontrol.com/ds-server/reference/javascript/inputformat/settopaligned-method/llms.txt): Sets a value specifying whether text is top aligned at the current input position.
- [Javascript: InputFormat.setTopDistance Method](https://docs.textcontrol.com/ds-server/reference/javascript/inputformat/settopdistance-method/llms.txt): Sets a top paragraph distance, in twips, at the current input position.
- [Javascript: InputFormat.setTopFrameLine Method](https://docs.textcontrol.com/ds-server/reference/javascript/inputformat/settopframeline-method/llms.txt): Sets a value specifying whether there is a frame line at the top of the text.
- [Javascript: InputFormat.setUnderline Method](https://docs.textcontrol.com/ds-server/reference/javascript/inputformat/setunderline-method/llms.txt): Sets a value specifying whether text is underlined at the current input position.
- [Javascript: InputFormat.setUnderlineStyle Method](https://docs.textcontrol.com/ds-server/reference/javascript/inputformat/setunderlinestyle-method/llms.txt): Sets a value specifying the style at the current input position.
- [Javascript: InputFormat.setVerticallyCentered Method](https://docs.textcontrol.com/ds-server/reference/javascript/inputformat/setverticallycentered-method/llms.txt): Sets a value specifying whether text is vertically centered at the current text input position.

---

## Nearby

- **Previous:** [Javascript: InlineStyleCollection.getItem Method](https://docs.textcontrol.com/ds-server/reference/javascript/inlinestylecollection/getitem-method/llms.txt)
- **Next:** [Javascript: InputFormat.addEventListener Method](https://docs.textcontrol.com/ds-server/reference/javascript/inputformat/addeventlistener-method/llms.txt)
