Notebook

Inheritance: java.lang.Object

All Implemented Interfaces: com.aspose.note.INotebookChildNode, com.aspose.ms.System.Collections.Generic.IGenericEnumerable

public class Notebook implements INotebookChildNode, System.Collections.Generic.IGenericEnumerable<INotebookChildNode>

Représente un carnet Aspose.Note.

Constructeurs

ConstructeurDescription
Notebook()Initialise une nouvelle instance de la classe Notebook.
Notebook(String filePath)Initialise une nouvelle instance de la classe Notebook.
Notebook(String filePath, NotebookLoadOptions loadOptions)Initialise une nouvelle instance de la classe Notebook.

Méthodes

MéthodeDescription
<T1>getChildNodes(Class<T1> typeParameterClass)Obtient tous les nœuds enfants par type de nœud.
appendChild(INotebookChildNode newChild)Ajoute le nœud à la fin de la liste.
getColor()Obtient ou définit la couleur.
getCount()Obtient le nombre d’éléments contenus dans le Notebook.
getDisplayName()Obtient ou définit le nom d’affichage.
getFileFormat()Obtient le format de fichier (OneNote 2010, OneNote Online).
getGuid()Obtient l’identifiant unique global de l’objet.
getGuidInternal()
get_Item(int index)Obtient le nœud enfant du bloc-notes à l’index donné.
isHistoryEnabled()Obtient ou définit une valeur indiquant si l’historique est activé.
iterator()Renvoie un énumérateur qui parcourt les nœuds enfants du Notebook.
loadChildDocument(InputStream stream)Ajoute un nœud de document enfant.
loadChildDocument(InputStream stream, LoadOptions loadOptions)Ajoute un nœud de document enfant.
loadChildDocument(String filePath)Ajoute un nœud de document enfant.
loadChildDocument(String filePath, LoadOptions loadOptions)Ajoute un nœud de document enfant.
loadChildNotebook(String filePath)Ajoute un nœud de bloc-notes enfant.
loadChildNotebook(String filePath, NotebookLoadOptions loadOptions)Ajoute un nœud de bloc-notes enfant.
removeChild(INotebookChildNode oldChild)Supprime le nœud enfant.
save(OutputStream stream)Enregistre le document OneNote dans un flux.
save(OutputStream stream, NotebookSaveOptions options)Enregistre le document OneNote dans un flux en utilisant les options d’enregistrement spécifiées.
save(OutputStream stream, int format)Enregistre le document OneNote dans un flux au format spécifié.
save(String fileName)Enregistre le document OneNote dans un fichier.
save(String fileName, NotebookSaveOptions options)Enregistre le document OneNote dans un fichier en utilisant les options d’enregistrement spécifiées.
save(String fileName, int format)Enregistre le document OneNote dans un fichier au format spécifié.
setColor(Color value)Obtient ou définit la couleur.
setDisplayName(String value)Obtient ou définit le nom d’affichage.
setHistoryEnabled(boolean value)Obtient ou définit une valeur indiquant si l’historique est activé.

Notebook()

public Notebook()

Initialise une nouvelle instance de la classe Notebook.

Notebook(String filePath)

public Notebook(String filePath)

Initialise une nouvelle instance de la classe Notebook. Ouvre un bloc-notes OneNote existant à partir d’un fichier.

Parameters:

ParamètreTypeDescription
filePathjava.lang.StringLe chemin du fichier.

Notebook(String filePath, NotebookLoadOptions loadOptions)

public Notebook(String filePath, NotebookLoadOptions loadOptions)

Initialise une nouvelle instance de la classe Notebook. Ouvre un carnet OneNote existant à partir d’un fichier. Permet de spécifier des options supplémentaires telles qu’une stratégie de chargement des enfants (“lazy”/instant).

Parameters:

ParamètreTypeDescription
filePathjava.lang.StringLe chemin du fichier.
loadOptionsNotebookLoadOptionsLes options de chargement.

<T1>getChildNodes(Class<T1> typeParameterClass)

public List<T1> <T1>getChildNodes(Class<T1> typeParameterClass)

Obtient tous les nœuds enfants par type de nœud.

Parameters:

ParamètreTypeDescription
typeParameterClassjava.lang.Class<T1>

Returns: java.util.List<T1> - Une liste de nœuds enfants.

T1: Le type des éléments dans la liste retournée.

appendChild(INotebookChildNode newChild)

public INotebookChildNode appendChild(INotebookChildNode newChild)

Ajoute le nœud à la fin de la liste.

Parameters:

ParamètreTypeDescription
newChildINotebookChildNodeLe nœud à ajouter.

Returns: INotebookChildNode - The added node.

getColor()

public Color getColor()

Obtient ou définit la couleur.

Returns: java.awt.Color

getCount()

public int getCount()

Obtient le nombre d’éléments contenus dans le Notebook.

Returns: int

getDisplayName()

public String getDisplayName()

Obtient ou définit le nom d’affichage.

Returns: java.lang.String

getFileFormat()

public int getFileFormat()

Obtient le format de fichier (OneNote 2010, OneNote Online).

Returns: int

getGuid()

public UUID getGuid()

Obtient l’identifiant unique global de l’objet.

Valeur: Le GUID.

Returns: java.util.UUID

getGuidInternal()

public System.Guid getGuidInternal()

Returns: com.aspose.ms.System.Guid

get_Item(int index)

public INotebookChildNode get_Item(int index)

Obtient le nœud enfant du bloc-notes à l’index donné.

Parameters:

ParamètreTypeDescription
indexintIndex du nœud enfant.

Returns: INotebookChildNode - The child node on the index position.

isHistoryEnabled()

public boolean isHistoryEnabled()

Obtient ou définit une valeur indiquant si l’historique est activé.

Returns: boolean

iterator()

public System.Collections.Generic.IGenericEnumerator<INotebookChildNode> iterator()

Renvoie un énumérateur qui parcourt les nœuds enfants du Notebook.

Returns: com.aspose.ms.System.Collections.Generic.IGenericEnumerator<com.aspose.note.INotebookChildNode> - Un IEnumerator.

loadChildDocument(InputStream stream)

public void loadChildDocument(InputStream stream)

Ajoute un nœud de document enfant. Ouvre un document OneNote existant à partir d’un flux.

Parameters:

ParamètreTypeDescription
fluxjava.io.InputStreamLe flux.

loadChildDocument(InputStream stream, LoadOptions loadOptions)

public void loadChildDocument(InputStream stream, LoadOptions loadOptions)

Ajoute un nœud de document enfant. Ouvre un document OneNote existant à partir d’un flux. Permet de spécifier des options de chargement supplémentaires.

Parameters:

ParamètreTypeDescription
fluxjava.io.InputStreamLe flux.
loadOptionsLoadOptionsLes options de chargement.

loadChildDocument(String filePath)

public void loadChildDocument(String filePath)

Ajoute un nœud de document enfant. Ouvre un document OneNote existant à partir d’un fichier.

Parameters:

ParamètreTypeDescription
filePathjava.lang.StringLe chemin du fichier.

loadChildDocument(String filePath, LoadOptions loadOptions)

public void loadChildDocument(String filePath, LoadOptions loadOptions)

Ajoute un nœud de document enfant. Ouvre un document OneNote existant à partir d’un fichier. Permet de spécifier des options de chargement supplémentaires.

Parameters:

ParamètreTypeDescription
filePathjava.lang.StringLe chemin du fichier.
loadOptionsLoadOptionsLes options de chargement.

loadChildNotebook(String filePath)

public void loadChildNotebook(String filePath)

Ajoute un nœud de carnet enfant. Ouvre un carnet OneNote existant à partir d’un fichier.

Parameters:

ParamètreTypeDescription
filePathjava.lang.StringLe chemin du fichier.

loadChildNotebook(String filePath, NotebookLoadOptions loadOptions)

public void loadChildNotebook(String filePath, NotebookLoadOptions loadOptions)

Ajoute un nœud de carnet enfant. Ouvre un carnet OneNote existant à partir d’un fichier. Permet de spécifier des options de chargement supplémentaires.

Parameters:

ParamètreTypeDescription
filePathjava.lang.StringLe chemin du fichier.
loadOptionsNotebookLoadOptionsLes options de chargement.

removeChild(INotebookChildNode oldChild)

public INotebookChildNode removeChild(INotebookChildNode oldChild)

Supprime le nœud enfant.

Parameters:

ParamètreTypeDescription
oldChildINotebookChildNodeLe nœud à supprimer.

Returns: INotebookChildNode - The removed node.

save(OutputStream stream)

public void save(OutputStream stream)

Enregistre le document OneNote dans un flux.

Parameters:

ParamètreTypeDescription
fluxjava.io.OutputStreamLe flux.

save(OutputStream stream, NotebookSaveOptions options)

public void save(OutputStream stream, NotebookSaveOptions options)

Enregistre le document OneNote dans un flux en utilisant les options d’enregistrement spécifiées.

Parameters:

ParamètreTypeDescription
fluxjava.io.OutputStreamLe flux.
optionsNotebookSaveOptionsSpécifie les options de sauvegarde du document.

save(OutputStream stream, int format)

public void save(OutputStream stream, int format)

Enregistre le document OneNote dans un flux au format spécifié.

Parameters:

ParamètreTypeDescription
fluxjava.io.OutputStreamLe flux.
formatintLe format dans lequel enregistrer le document.

save(String fileName)

public void save(String fileName)

Enregistre le document OneNote dans un fichier.

Parameters:

ParamètreTypeDescription
fileNamejava.lang.StringLe nom complet du fichier. Si un fichier portant le nom complet spécifié existe déjà, le fichier existant est écrasé.

save(String fileName, NotebookSaveOptions options)

public void save(String fileName, NotebookSaveOptions options)

Enregistre le document OneNote dans un fichier en utilisant les options d’enregistrement spécifiées.

Parameters:

ParamètreTypeDescription
fileNamejava.lang.StringLe nom complet du fichier. Si un fichier portant le nom complet spécifié existe déjà, le fichier existant est écrasé.
optionsNotebookSaveOptionsSpécifie les options de sauvegarde du document dans le fichier.

save(String fileName, int format)

public void save(String fileName, int format)

Enregistre le document OneNote dans un fichier au format spécifié.

Parameters:

ParamètreTypeDescription
fileNamejava.lang.StringLe nom complet du fichier. Si un fichier portant le nom complet spécifié existe déjà, le fichier existant est écrasé.
formatintLe format dans lequel enregistrer le document.

setColor(Color value)

public void setColor(Color value)

Obtient ou définit la couleur.

Parameters:

ParamètreTypeDescription
valeurjava.awt.Color

setDisplayName(String value)

public void setDisplayName(String value)

Obtient ou définit le nom d’affichage.

Parameters:

ParamètreTypeDescription
valeurjava.lang.String

setHistoryEnabled(boolean value)

public void setHistoryEnabled(boolean value)

Obtient ou définit une valeur indiquant si l’historique est activé.

Parameters:

ParamètreTypeDescription
valeurboolean