Class NumberList

Class NumberList

De naam: Aspose.Note Verzameling: Aspose.Note.dll (25.4.0)

Het vertegenwoordigt de getal of bullet lijst.

public class NumberList

Inheritance

object NumberList

Geëerbiede leden

object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()

Examples

Toon hoe u informatie over de formatting van de lijst kunt ontvangen.

string dataDir = RunExamples.GetDataDir_Text();

                                                                     // Load the document into Aspose.Note.
                                                                     Document oneFile = new Document(dataDir + "ApplyNumberingOnText.one");

                                                                     // Retrieve a collection nodes of the outline element
                                                                     IList<outlineelement> nodes = oneFile.GetChildNodes<outlineelement>();

                                                                     // Iterate through each node
                                                                     foreach (OutlineElement node in nodes)
                                                                     {
                                                                         if (node.NumberList != null)
                                                                         {
                                                                             NumberList list = node.NumberList;

                                                                             // Retrieve font name
                                                                             Console.WriteLine("Font Name: " + list.Font);

                                                                             // Retrieve font length
                                                                             Console.WriteLine("Font Length: " + list.Font.Length);

                                                                             // Retrieve font size
                                                                             Console.WriteLine("Font Size: " + list.FontSize);

                                                                             // Retrieve font color
                                                                             Console.WriteLine("Font Color: " + list.FontColor);

                                                                             // Retrieve format
                                                                             Console.WriteLine("Font format: " + list.Format);

                                                                             // Check bold
                                                                             Console.WriteLine("Is bold: " + list.IsBold);

                                                                             // Check italic
                                                                             Console.WriteLine("Is italic: " + list.IsItalic);
                                                                             Console.WriteLine();
                                                                         }
                                                                     }</outlineelement></outlineelement>

Toon hoe u een nieuwe lijst met Chinese getallen invoert.

string dataDir = RunExamples.GetDataDir_Text();

                                                               // Initialize OneNote document
                                                               Aspose.Note.Document doc = new Aspose.Note.Document();

                                                               // Initialize OneNote page
                                                               Aspose.Note.Page page = new Aspose.Note.Page(doc);
                                                               Outline outline = new Outline(doc);

                                                               // Apply text style settings
                                                               ParagraphStyle defaultStyle = new ParagraphStyle { FontColor = Color.Black, FontName = "Arial", FontSize = 10 };

                                                               // Numbers in the same outline are automatically incremented.
                                                               OutlineElement outlineElem1 = new OutlineElement(doc) { NumberList = new NumberList("{0})", NumberFormat.ChineseCounting, "Arial", 10) };
                                                               RichText text1 = new RichText(doc) { Text = "First", ParagraphStyle = defaultStyle };
                                                               outlineElem1.AppendChildLast(text1);

                                                               //------------------------
                                                               OutlineElement outlineElem2 = new OutlineElement(doc) { NumberList = new NumberList("{0})", NumberFormat.ChineseCounting, "Arial", 10) };
                                                               RichText text2 = new RichText(doc) { Text = "Second", ParagraphStyle = defaultStyle };
                                                               outlineElem2.AppendChildLast(text2);

                                                               //------------------------
                                                               OutlineElement outlineElem3 = new OutlineElement(doc) { NumberList = new NumberList("{0})", NumberFormat.ChineseCounting, "Arial", 10) };
                                                               RichText text3 = new RichText(doc) { Text = "Third", ParagraphStyle = defaultStyle };
                                                               outlineElem3.AppendChildLast(text3);

                                                               //------------------------
                                                               outline.AppendChildLast(outlineElem1);
                                                               outline.AppendChildLast(outlineElem2);
                                                               outline.AppendChildLast(outlineElem3);
                                                               page.AppendChildLast(outline);
                                                               doc.AppendChildLast(page);

                                                               // Save OneNote document
                                                               dataDir = dataDir + "InsertChineseNumberList_out.one"; 
                                                               doc.Save(dataDir);

Toon hoe u een nieuwe lijst met getallen invoert.

string dataDir = RunExamples.GetDataDir_Text();

                                                       // Create an object of the Document class
                                                       Document doc = new Document();

                                                       // Initialize Page class object
                                                       Aspose.Note.Page page = new Aspose.Note.Page(doc);

                                                       // Initialize Outline class object
                                                       Outline outline = new Outline(doc);

                                                       // Initialize TextStyle class object and set formatting properties
                                                       ParagraphStyle defaultStyle = new ParagraphStyle { FontColor = Color.Black, FontName = "Arial", FontSize = 10 };

                                                       // Initialize OutlineElement class objects and apply numbering
                                                       // Numbers in the same outline are automatically incremented.
                                                       OutlineElement outlineElem1 = new OutlineElement(doc) { NumberList = new NumberList("{0})", NumberFormat.DecimalNumbers, "Arial", 10) };
                                                       RichText text1 = new RichText(doc) { Text = "First", ParagraphStyle = defaultStyle };
                                                       outlineElem1.AppendChildLast(text1);

                                                       OutlineElement outlineElem2 = new OutlineElement(doc) { NumberList = new NumberList("{0})", NumberFormat.DecimalNumbers, "Arial", 10) };
                                                       RichText text2 = new RichText(doc) { Text = "Second", ParagraphStyle = defaultStyle };
                                                       outlineElem2.AppendChildLast(text2);

                                                       OutlineElement outlineElem3 = new OutlineElement(doc) { NumberList = new NumberList("{0})", NumberFormat.DecimalNumbers, "Arial", 10) };
                                                       RichText text3 = new RichText(doc) { Text = "Third", ParagraphStyle = defaultStyle };
                                                       outlineElem3.AppendChildLast(text3);

                                                       // Add outline elements
                                                       outline.AppendChildLast(outlineElem1);
                                                       outline.AppendChildLast(outlineElem2);
                                                       outline.AppendChildLast(outlineElem3);

                                                       // Add Outline node
                                                       page.AppendChildLast(outline);

                                                       // Add Page node
                                                       doc.AppendChildLast(page);

                                                       // Save OneNote document
                                                       dataDir = dataDir + "ApplyNumberingOnText_out.one"; 
                                                       doc.Save(dataDir);

Constructors

NumberList(String, String en Int)

Initialiseert een nieuwe instantie van de Aspose.Note.NumberList-klasse.Deze instantie vertegenwoordigt een geplaatste lijst.

public NumberList(string bulletedSymbol, string font, int fontSize)

Parameters

bulletedSymbol string

Een symbool dat een bal vertegenwoordigt.

font string

Een letter voor de bal.

fontSize int

Een lettergrootte voor de bal.

NumberList(String, NumberFormat, string, int)

Initialiseert een nieuwe instantie van de Aspose.Note.NumberList-klasse.Deze instantie is een getallijst.

public NumberList(string format, NumberFormat numberFormat, string font, int fontSize)

Parameters

format string

Het format van de getallen header.

numberFormat NumberFormat

De vorm van het getal in de header.

font string

Een letter voor de getallen header.

fontSize int

Een lettergrootte voor de getallen header.

Properties

Font

Geeft of zet de naam van de lettertype.

public string Font { get; set; }

Eigendomswaarde

string

Examples

Toon hoe u informatie over de formatting van de lijst kunt ontvangen.

string dataDir = RunExamples.GetDataDir_Text();

                                                                     // Load the document into Aspose.Note.
                                                                     Document oneFile = new Document(dataDir + "ApplyNumberingOnText.one");

                                                                     // Retrieve a collection nodes of the outline element
                                                                     IList<outlineelement> nodes = oneFile.GetChildNodes<outlineelement>();

                                                                     // Iterate through each node
                                                                     foreach (OutlineElement node in nodes)
                                                                     {
                                                                         if (node.NumberList != null)
                                                                         {
                                                                             NumberList list = node.NumberList;

                                                                             // Retrieve font name
                                                                             Console.WriteLine("Font Name: " + list.Font);

                                                                             // Retrieve font length
                                                                             Console.WriteLine("Font Length: " + list.Font.Length);

                                                                             // Retrieve font size
                                                                             Console.WriteLine("Font Size: " + list.FontSize);

                                                                             // Retrieve font color
                                                                             Console.WriteLine("Font Color: " + list.FontColor);

                                                                             // Retrieve format
                                                                             Console.WriteLine("Font format: " + list.Format);

                                                                             // Check bold
                                                                             Console.WriteLine("Is bold: " + list.IsBold);

                                                                             // Check italic
                                                                             Console.WriteLine("Is italic: " + list.IsItalic);
                                                                             Console.WriteLine();
                                                                         }
                                                                     }</outlineelement></outlineelement>

FontColor

Geeft of zet de letterkleur.

public Color FontColor { get; set; }

Eigendomswaarde

Color

Examples

Toon hoe u informatie over de formatting van de lijst kunt ontvangen.

string dataDir = RunExamples.GetDataDir_Text();

                                                                     // Load the document into Aspose.Note.
                                                                     Document oneFile = new Document(dataDir + "ApplyNumberingOnText.one");

                                                                     // Retrieve a collection nodes of the outline element
                                                                     IList<outlineelement> nodes = oneFile.GetChildNodes<outlineelement>();

                                                                     // Iterate through each node
                                                                     foreach (OutlineElement node in nodes)
                                                                     {
                                                                         if (node.NumberList != null)
                                                                         {
                                                                             NumberList list = node.NumberList;

                                                                             // Retrieve font name
                                                                             Console.WriteLine("Font Name: " + list.Font);

                                                                             // Retrieve font length
                                                                             Console.WriteLine("Font Length: " + list.Font.Length);

                                                                             // Retrieve font size
                                                                             Console.WriteLine("Font Size: " + list.FontSize);

                                                                             // Retrieve font color
                                                                             Console.WriteLine("Font Color: " + list.FontColor);

                                                                             // Retrieve format
                                                                             Console.WriteLine("Font format: " + list.Format);

                                                                             // Check bold
                                                                             Console.WriteLine("Is bold: " + list.IsBold);

                                                                             // Check italic
                                                                             Console.WriteLine("Is italic: " + list.IsItalic);
                                                                             Console.WriteLine();
                                                                         }
                                                                     }</outlineelement></outlineelement>

FontSize

Geeft of bepaalt de lettergrootte.

public int FontSize { get; set; }

Eigendomswaarde

int

Examples

Toon hoe u informatie over de formatting van de lijst kunt ontvangen.

string dataDir = RunExamples.GetDataDir_Text();

                                                                     // Load the document into Aspose.Note.
                                                                     Document oneFile = new Document(dataDir + "ApplyNumberingOnText.one");

                                                                     // Retrieve a collection nodes of the outline element
                                                                     IList<outlineelement> nodes = oneFile.GetChildNodes<outlineelement>();

                                                                     // Iterate through each node
                                                                     foreach (OutlineElement node in nodes)
                                                                     {
                                                                         if (node.NumberList != null)
                                                                         {
                                                                             NumberList list = node.NumberList;

                                                                             // Retrieve font name
                                                                             Console.WriteLine("Font Name: " + list.Font);

                                                                             // Retrieve font length
                                                                             Console.WriteLine("Font Length: " + list.Font.Length);

                                                                             // Retrieve font size
                                                                             Console.WriteLine("Font Size: " + list.FontSize);

                                                                             // Retrieve font color
                                                                             Console.WriteLine("Font Color: " + list.FontColor);

                                                                             // Retrieve format
                                                                             Console.WriteLine("Font format: " + list.Format);

                                                                             // Check bold
                                                                             Console.WriteLine("Is bold: " + list.IsBold);

                                                                             // Check italic
                                                                             Console.WriteLine("Is italic: " + list.IsItalic);
                                                                             Console.WriteLine();
                                                                         }
                                                                     }</outlineelement></outlineelement>

Format

Geeft of stelt het formaat van de lijnhoofd. Voor geplooide lijsten vertegenwoordigt een bullet symbool.

public string Format { get; set; }

Eigendomswaarde

string

Examples

Toon hoe u informatie over de formatting van de lijst kunt ontvangen.

string dataDir = RunExamples.GetDataDir_Text();

                                                                     // Load the document into Aspose.Note.
                                                                     Document oneFile = new Document(dataDir + "ApplyNumberingOnText.one");

                                                                     // Retrieve a collection nodes of the outline element
                                                                     IList<outlineelement> nodes = oneFile.GetChildNodes<outlineelement>();

                                                                     // Iterate through each node
                                                                     foreach (OutlineElement node in nodes)
                                                                     {
                                                                         if (node.NumberList != null)
                                                                         {
                                                                             NumberList list = node.NumberList;

                                                                             // Retrieve font name
                                                                             Console.WriteLine("Font Name: " + list.Font);

                                                                             // Retrieve font length
                                                                             Console.WriteLine("Font Length: " + list.Font.Length);

                                                                             // Retrieve font size
                                                                             Console.WriteLine("Font Size: " + list.FontSize);

                                                                             // Retrieve font color
                                                                             Console.WriteLine("Font Color: " + list.FontColor);

                                                                             // Retrieve format
                                                                             Console.WriteLine("Font format: " + list.Format);

                                                                             // Check bold
                                                                             Console.WriteLine("Is bold: " + list.IsBold);

                                                                             // Check italic
                                                                             Console.WriteLine("Is italic: " + list.IsItalic);
                                                                             Console.WriteLine();
                                                                         }
                                                                     }</outlineelement></outlineelement>

IsBold

Geeft of stelt een waarde aan om aan te tonen of de tekst stijl moedig is.

public bool IsBold { get; set; }

Eigendomswaarde

bool

Examples

Toon hoe u informatie over de formatting van de lijst kunt ontvangen.

string dataDir = RunExamples.GetDataDir_Text();

                                                                     // Load the document into Aspose.Note.
                                                                     Document oneFile = new Document(dataDir + "ApplyNumberingOnText.one");

                                                                     // Retrieve a collection nodes of the outline element
                                                                     IList<outlineelement> nodes = oneFile.GetChildNodes<outlineelement>();

                                                                     // Iterate through each node
                                                                     foreach (OutlineElement node in nodes)
                                                                     {
                                                                         if (node.NumberList != null)
                                                                         {
                                                                             NumberList list = node.NumberList;

                                                                             // Retrieve font name
                                                                             Console.WriteLine("Font Name: " + list.Font);

                                                                             // Retrieve font length
                                                                             Console.WriteLine("Font Length: " + list.Font.Length);

                                                                             // Retrieve font size
                                                                             Console.WriteLine("Font Size: " + list.FontSize);

                                                                             // Retrieve font color
                                                                             Console.WriteLine("Font Color: " + list.FontColor);

                                                                             // Retrieve format
                                                                             Console.WriteLine("Font format: " + list.Format);

                                                                             // Check bold
                                                                             Console.WriteLine("Is bold: " + list.IsBold);

                                                                             // Check italic
                                                                             Console.WriteLine("Is italic: " + list.IsItalic);
                                                                             Console.WriteLine();
                                                                         }
                                                                     }</outlineelement></outlineelement>

IsItalic

Geeft of stelt een waarde aan om aan te tonen of de tekststijl Italiaans is.

public bool IsItalic { get; set; }

Eigendomswaarde

bool

Examples

Toon hoe u informatie over de formatting van de lijst kunt ontvangen.

string dataDir = RunExamples.GetDataDir_Text();

                                                                     // Load the document into Aspose.Note.
                                                                     Document oneFile = new Document(dataDir + "ApplyNumberingOnText.one");

                                                                     // Retrieve a collection nodes of the outline element
                                                                     IList<outlineelement> nodes = oneFile.GetChildNodes<outlineelement>();

                                                                     // Iterate through each node
                                                                     foreach (OutlineElement node in nodes)
                                                                     {
                                                                         if (node.NumberList != null)
                                                                         {
                                                                             NumberList list = node.NumberList;

                                                                             // Retrieve font name
                                                                             Console.WriteLine("Font Name: " + list.Font);

                                                                             // Retrieve font length
                                                                             Console.WriteLine("Font Length: " + list.Font.Length);

                                                                             // Retrieve font size
                                                                             Console.WriteLine("Font Size: " + list.FontSize);

                                                                             // Retrieve font color
                                                                             Console.WriteLine("Font Color: " + list.FontColor);

                                                                             // Retrieve format
                                                                             Console.WriteLine("Font format: " + list.Format);

                                                                             // Check bold
                                                                             Console.WriteLine("Is bold: " + list.IsBold);

                                                                             // Check italic
                                                                             Console.WriteLine("Is italic: " + list.IsItalic);
                                                                             Console.WriteLine();
                                                                         }
                                                                     }</outlineelement></outlineelement>

LastModifiedTime

Geeft of stelt de laatste gewijzigde tijd.

public DateTime LastModifiedTime { get; set; }

Eigendomswaarde

DateTime

NumberFormat

Geeft of stelt het nummerformaat dat wordt gebruikt voor een groep automatisch getaliseerde objecten.

public NumberFormat? NumberFormat { get; set; }

Eigendomswaarde

NumberFormat ?

Restart

Geeft of stelt de numerieke waarde die de automatische nummerwaarde van het item in de lijst overschrijdt.

public int Restart { get; set; }

Eigendomswaarde

int

Methods

Equals(Objecten)

Het bepaalt of het aangegeven object gelijk is aan het huidige object.

public override bool Equals(object obj)

Parameters

obj object

Het object .

Returns

bool

Het systeem. boolean

Equals(NumberList)

Het bepaalt of het aangegeven object gelijk is aan het huidige object.

public bool Equals(NumberList other)

Parameters

other NumberList

Het object .

Returns

bool

Het systeem. boolean

GetHashCode()

Het dient als een hashfunctie voor het type.

public override int GetHashCode()

Returns

int

Het systeem.Int32.

GetNumberedListHeader(Int)

Geeft de getallen lijst header.

public string GetNumberedListHeader(int sequenceNumber)

Parameters

sequenceNumber int

Het sequentienummer in de getallijst.

Returns

string

Een stringvertegenwoordiging van het aangegeven sequentienummer.

 Nederlands