Cell
Panoramica
Cell è una classe in Aspose.Slides FOSS per Java. Eredita da: ICell, ISlideComponent, IPresentationComponent.
Rappresenta una cella di una tabella.
Questa classe fornisce 41 metodi per lavorare con oggetti Cell in programmi Java. I metodi disponibili includono: Cell, asIPresentationComponent, ensureTcPr, getAsIPresentationComponent, getAsISlideComponent, getCellFormat, getColSpan, getFirstColumn, getFirstColumnIndex, getFirstRow, getFirstRowIndex, getHeight, e 27 metodi aggiuntivi. Tutti i membri pubblici sono accessibili a qualsiasi applicazione Java dopo l’installazione del pacchetto Aspose.Slides FOSS per Java. Proprietà: anchorCenter, asIPresentationComponent, asISlideComponent, cellFormat, colSpan, firstColumn, e 22 in più.
Proprietà
| Nome | Tipo | Accesso | Descrizione |
|---|---|---|---|
tcPr | Element | Lettura | Restituisce l’elemento figlio {@code <a:tcPr>} dell’elemento {@code <a:tc>} di base. |
offsetX | double | Lettura | Ottiene l’offset x. |
offsetY | double | Lettura | Ottiene l’offset y. |
firstRowIndex | int | Lettura | Restituisce l’indice della prima riga. |
firstColumnIndex | int | Lettura | Ottiene l’indice della prima colonna. |
width | double | Lettura | Ottiene la larghezza. |
height | double | Lettura | Ottiene l’altezza. |
minimalHeight | double | Lettura | Ottiene l’altezza minima. |
marginLeft | double | Lettura | Ottiene il margine sinistro. |
marginRight | double | Lettura | Restituisce il margine destro. |
marginTop | double | Lettura | Ottiene il margine superiore. |
marginBottom | double | Lettura | Ottiene il margine inferiore. |
textVerticalType | TextVerticalType | Lettura | Ottiene il tipo verticale del testo. |
textAnchorType | TextAnchorType | Lettura | Ottiene il tipo di ancoraggio del testo. |
anchorCenter | boolean | Lettura | Ottiene il centro dell’ancora. |
firstRow | IRow | Lettura | Restituisce la prima riga. |
firstColumn | IColumn | Lettura | Ottiene la prima colonna. |
colSpan | int | Lettura | Ottiene il col span. |
rowSpan | int | Lettura | Ottiene l’estensione della riga. |
textFrame | ITextFrame | Lettura | Ottiene il frame di testo. |
table | ITable | Lettura | Ottiene la tabella. |
mergedCell | boolean | Lettura | Ottiene la cella unita. |
cellFormat | ICellFormat | Lettura | Ottiene il formato della cella. |
slide | IBaseSlide | Lettura | Ottiene la diapositiva. |
presentation | IPresentation | Lettura | Ottiene la presentazione. |
tcElement | Element | Lettura | Restituisce l’elemento {@code <a:tc>} XML sottostante. |
asISlideComponent | ISlideComponent | Lettura | Restituisce il componente as i slide. |
asIPresentationComponent | IPresentationComponent | Lettura | Ottiene il componente di presentazione as i. |
Metodi
| Firma | Descrizione |
|---|---|
Cell() | Crea una {@code Cell} vuota senza elemento di supporto. |
Cell(tcElement: Element, rowIndex: int, colIndex: int, saveCallback: Runnable, parentSlide: IBaseSlide, table: ITable) | Crea una nuova {@code Cell} supportata dall’elemento {@code <a:tc>} fornito. |
Cell(tcElement: Element, saveCallback: Runnable) | Crea una nuova {@code Cell} supportata dall’elemento {@code <a:tc>} fornito. |
initInternal(tcElement: Element, rowIndex: int, colIndex: int, saveCallback: Runnable, parentSlide: IBaseSlide, table: ITable) → Cell | Inizializza questa cella dall’elemento {@code <a:tc>} fornito e dal contesto della tabella. |
getTcPr() → Element | Restituisce l’elemento figlio {@code <a:tcPr>} dell’elemento di supporto {@code <a:tc>}. |
ensureTcPr() → Element | Restituisce l’elemento figlio {@code <a:tcPr>}, creandolo se assente. |
getOffsetX() → double | Restituisce l’offset x. |
getOffsetY() → double | Restituisce l’offset y. |
getFirstRowIndex() → int | Restituisce l’indice della prima riga. |
getFirstColumnIndex() → int | Restituisce l’indice della prima colonna. |
getWidth() → double | Restituisce la larghezza. |
getHeight() → double | Restituisce l’altezza. |
getMinimalHeight() → double | Restituisce l’altezza minima. |
getMarginLeft() → double | Restituisce il margine sinistro. |
setMarginLeft(value: double) | Imposta il valore del margine sinistro. |
getMarginRight() → double | Restituisce il margine destro. |
setMarginRight(value: double) | Imposta il valore del margine destro. |
getMarginTop() → double | Restituisce il margine superiore. |
setMarginTop(value: double) | Imposta il valore del margine superiore. |
getMarginBottom() → double | Restituisce il margine inferiore. |
setMarginBottom(value: double) | Imposta il valore del margine inferiore. |
getTextVerticalType() → TextVerticalType | Restituisce il tipo verticale del testo. |
setTextVerticalType(value: TextVerticalType) | Imposta il valore del tipo verticale del testo. |
getTextAnchorType() → TextAnchorType | Restituisce il tipo di ancoraggio del testo. |
setTextAnchorType(value: TextAnchorType) | Imposta il valore del tipo di ancoraggio del testo. |
isAnchorCenter() → boolean | Restituisce true se il centro dell’ancora è impostato. |
setAnchorCenter(value: boolean) | Imposta il valore del centro dell’ancora. |
getFirstRow() → IRow | Restituisce la prima riga. |
getFirstColumn() → IColumn | Restituisce la prima colonna. |
getColSpan() → int | Restituisce l’estensione della colonna. |
getRowSpan() → int | Restituisce l’estensione della riga. |
getTextFrame() → ITextFrame | Restituisce il frame di testo. |
getTable() → ITable | Restituisce la tabella. |
isMergedCell() → boolean | Restituisce true se la cella unita è impostata. |
getCellFormat() → ICellFormat | Restituisce il formato della cella. |
getSlide() → IBaseSlide | Restituisce la diapositiva. |
getPresentation() → IPresentation | Restituisce la presentazione. |
getTcElement() → Element | Restituisce l’elemento {@code <a:tc>} XML sottostante. |
getAsISlideComponent() → ISlideComponent | Restituisce il componente as i slide. |
getAsIPresentationComponent() → IPresentationComponent | Restituisce il componente as i presentation. |
asIPresentationComponent() → IPresentationComponent |