StyleValue
General
StyleValue és una classe en FOSS per Java.
Representa un valor d’estil amb diverses propietats de formatge.
Aquesta classe proporciona 20 mètodes per treballar amb objectes StyleValue en programes Java. Els mètodes disponibles inclouen: clone, getAlignment, getBackgroundColor, getBorders, getDefault, getFont, getForegroundColor, getNumberFormat, getPattern, getProtection, getRawFillXml, setAlignment, i 8 mètodes addicionals. Tots els membres exportats són accessibles per a qualsevol aplicació Java després d’instal·lar el paquet FOSS for Java. Propietats: alignment, backgroundColor, borders, default, font, foregroundColor, i 4 més.
Descripció
StyleValue és una classe de la biblioteca FOSS per a Java que exposa 20 mètodes i 10 propietats per al seu ús programàtic.
Les capacitats bàsiques inclouen: stylevalue; fontvalue; fillpatternkind.Aquestes operacions permeten als desenvolupadors integrar la funcionalitat de stylevalue directament en les aplicacions Java.
La classe també proporciona el default propietat (obté el valor d’estil predeterminat), la font propietat (retorna la font), el pattern propietat (retorna el patró).
Propietats
| Nom | Tipus de productes | Access | Descripció |
|---|---|---|---|
default | StyleValue | Llegeix. | Obté el valor d’estil per defecte. |
font | FontValue | Llegeix. | Retorna la font. |
pattern | FillPatternKind | Llegeix. | Retorna el patró. |
foregroundColor | ColorValue | Llegeix. | Retorna el color de primer pla. |
backgroundColor | ColorValue | Llegeix. | Retorna el color de fons. |
borders | BordersValue | Llegeix. | Torna les fronteres. |
alignment | AlignmentValue | Llegeix. | Retorna l’alineació. |
protection | ProtectionValue | Llegeix. | Torna la protecció. |
numberFormat | NumberFormatValue | Llegeix. | Retorna el format de nombre. |
rawFillXml | String | Llegeix. | Obté el XML de farciment en brut. |
Mètodes
| Signature | Descripció |
|---|---|
getDefault() → StyleValue | Obté el valor d’estil per defecte. |
getFont() → FontValue | Retorna la font. |
setFont(font: FontValue) | Estableix la font. |
getPattern() → FillPatternKind | Retorna el patró. |
setPattern(pattern: FillPatternKind) | Estableix el patró. |
getForegroundColor() → ColorValue | Retorna el color de primer pla. |
setForegroundColor(foregroundColor: ColorValue) | Estableix el color de primer pla. |
getBackgroundColor() → ColorValue | Retorna el color de fons. |
setBackgroundColor(backgroundColor: ColorValue) | Estableix el color de fons. |
getBorders() → BordersValue | Torna les fronteres. |
setBorders(borders: BordersValue) | Estableix les vores. |
getAlignment() → AlignmentValue | Retorna l’alineació. |
setAlignment(alignment: AlignmentValue) | Estableix l’alineació. |
getProtection() → ProtectionValue | Torna la protecció. |
setProtection(protection: ProtectionValue) | Estableix la protecció. |
getNumberFormat() → NumberFormatValue | Retorna el format de nombre. |
setNumberFormat(numberFormat: NumberFormatValue) | Estableix el format del número. |
getRawFillXml() → String | Retorna el rellotge xml brut. |
setRawFillXml(rawFillXml: String) | Estableix el valor XML brut del farciment. |
clone() → StyleValue | Crea una còpia d’aquesta instància. |