---
Product: Aspose.Slides
Platform: java
Page Type: reference
Canonical URL: https://reference.aspose.org/slides/java/BasePortionFormat
---

# BasePortionFormat

## Overview

`BasePortionFormat` is a class in Aspose.Slides FOSS for Java.
Inherits from: `IBasePortionFormat`.

Common text portion formatting properties.

This class provides 51 methods for working with BasePortionFormat objects in Java programs.
Available methods include: `BasePortionFormat`, `getAlternativeLanguageId`, `getComplexScriptFont`, `getEastAsianFont`, `getEffectFormat`, `getEscapement`, `getFillFormat`, `getFontBold`, `getFontHeight`, `getFontItalic`, `getFontUnderline`, `getHighlightColor`, and 38 additional methods.
All public members are accessible to any Java application after installing the Aspose.Slides FOSS for Java package.
Properties: `alternativeLanguageId`, `complexScriptFont`, `eastAsianFont`, `effectFormat`, `escapement`, `fillFormat`, and 22 more.

## Properties

| Name | Type | Access | Description |
|------|------|--------|-------------|
| `rprElement` | `Element` | Read | Returns the underlying {@code } XML element. |
| `lineFormat` | `ILineFormat` | Read | Gets the line format. |
| `fillFormat` | `IFillFormat` | Read | Gets the fill format. |
| `effectFormat` | `IEffectFormat` | Read | Gets the effect format. |
| `highlightColor` | `IColorFormat` | Read | Gets the highlight color. |
| `underlineLineFormat` | `ILineFormat` | Read | Gets the underline line format. |
| `underlineFillFormat` | `IFillFormat` | Read | Gets the underline fill format. |
| `fontBold` | `NullableBool` | Read | Gets the font bold. |
| `fontItalic` | `NullableBool` | Read | Gets the font italic. |
| `kumimoji` | `NullableBool` | Read | Gets the kumimoji. |
| `normaliseHeight` | `NullableBool` | Read | Gets the normalise height. |
| `proofDisabled` | `NullableBool` | Read | Gets the proof disabled. |
| `fontUnderline` | `TextUnderlineType` | Read | Gets the font underline. |
| `textCapType` | `TextCapType` | Read | Gets the text cap type. |
| `strikethroughType` | `TextStrikethroughType` | Read | Gets the strikethrough type. |
| `isHardUnderlineLine` | `NullableBool` | Read | Gets the is hard underline line. |
| `isHardUnderlineFill` | `NullableBool` | Read | Gets the is hard underline fill. |
| `fontHeight` | `float` | Read | Gets the font height. |
| `escapement` | `float` | Read | Gets the escapement. |
| `kerningMinimalSize` | `float` | Read | Gets the kerning minimal size. |
| `spacing` | `float` | Read | Gets the spacing. |
| `latinFont` | `IFontData` | Read | Gets the latin font. |
| `eastAsianFont` | `IFontData` | Read | Gets the east asian font. |
| `complexScriptFont` | `IFontData` | Read | Gets the complex script font. |
| `symbolFont` | `IFontData` | Read | Gets the symbol font. |
| `languageId` | `String` | Read | Gets the language id. |
| `alternativeLanguageId` | `String` | Read | Gets the alternative language id. |
| `spellCheck` | `boolean` | Read | Gets the spell check. |

## Methods

| Signature | Description |
|-----------|-------------|
| `BasePortionFormat()` | Creates a new BasePortionFormat with a detached {@code } element. |
| `BasePortionFormat(rprElement: Element, saveCallback: Runnable)` | Creates a new BasePortionFormat backed by the given {@code } element. |
| `getRprElement()` → `Element` | Returns the underlying {@code } XML element. |
| `getLineFormat()` → `ILineFormat` | Returns the line format. |
| `getFillFormat()` → `IFillFormat` | Returns the fill format. |
| `getEffectFormat()` → `IEffectFormat` | Returns the effect format. |
| `getHighlightColor()` → `IColorFormat` | Returns the highlight color. |
| `getUnderlineLineFormat()` → `ILineFormat` | Returns the underline line format. |
| `getUnderlineFillFormat()` → `IFillFormat` | Returns the underline fill format. |
| `getFontBold()` → `NullableBool` | Returns the font bold. |
| `setFontBold(value: NullableBool)` | Sets the font bold value. |
| `getFontItalic()` → `NullableBool` | Returns the font italic. |
| `setFontItalic(value: NullableBool)` | Sets the font italic value. |
| `getKumimoji()` → `NullableBool` | Returns the kumimoji. |
| `setKumimoji(value: NullableBool)` | Sets the kumimoji value. |
| `getNormaliseHeight()` → `NullableBool` | Returns the normalise height. |
| `setNormaliseHeight(value: NullableBool)` | Sets the normalise height value. |
| `getProofDisabled()` → `NullableBool` | Returns the proof disabled. |
| `setProofDisabled(value: NullableBool)` | Sets the proof disabled value. |
| `getFontUnderline()` → `TextUnderlineType` | Returns the font underline. |
| `setFontUnderline(value: TextUnderlineType)` | Sets the font underline value. |
| `getTextCapType()` → `TextCapType` | Returns the text cap type. |
| `setTextCapType(value: TextCapType)` | Sets the text cap type value. |
| `getStrikethroughType()` → `TextStrikethroughType` | Returns the strikethrough type. |
| `setStrikethroughType(value: TextStrikethroughType)` | Sets the strikethrough type value. |
| `getIsHardUnderlineLine()` → `NullableBool` | Returns the is hard underline line. |
| `setIsHardUnderlineLine(value: NullableBool)` | Sets the is hard underline line value. |
| `getIsHardUnderlineFill()` → `NullableBool` | Returns the is hard underline fill. |
| `setIsHardUnderlineFill(value: NullableBool)` | Sets the is hard underline fill value. |
| `getFontHeight()` → `float` | Returns the font height. |
| `setFontHeight(value: float)` | Sets the font height value. |
| `getEscapement()` → `float` | Returns the escapement. |
| `setEscapement(value: float)` | Sets the escapement value. |
| `getKerningMinimalSize()` → `float` | Returns the kerning minimal size. |
| `setKerningMinimalSize(value: float)` | Sets the kerning minimal size value. |
| `getSpacing()` → `float` | Returns the spacing. |
| `setSpacing(value: float)` | Sets the spacing value. |
| `getLatinFont()` → `IFontData` | Returns the latin font. |
| `setLatinFont(value: IFontData)` | Sets the latin font value. |
| `getEastAsianFont()` → `IFontData` | Returns the east asian font. |
| `setEastAsianFont(value: IFontData)` | Sets the east asian font value. |
| `getComplexScriptFont()` → `IFontData` | Returns the complex script font. |
| `setComplexScriptFont(value: IFontData)` | Sets the complex script font value. |
| `getSymbolFont()` → `IFontData` | Returns the symbol font. |
| `setSymbolFont(value: IFontData)` | Sets the symbol font value. |
| `getLanguageId()` → `String` | Returns the language id. |
| `setLanguageId(value: String)` | Sets the language id value. |
| `getAlternativeLanguageId()` → `String` | Returns the alternative language id. |
| `setAlternativeLanguageId(value: String)` | Sets the alternative language id value. |
| `getSpellCheck()` → `boolean` | Returns the spell check. |
| `setSpellCheck(value: boolean)` | Sets the spell check value. |

## See Also

- [Aspose.Slides — Enterprise API Reference](https://reference.aspose.com/slides/)