Class NumberList

Class NumberList

이름 공간 : Aspose.Note 모임: Aspose.Note.dll (25.4.0)

숫자 또는 볼렛 목록을 나타냅니다.

public class NumberList
   {
       private List<int> _numbers;
       public NumberList()
       {
           _numbers = new List<int>();
       }
       public void Add(int number)
       {
           _numbers.Add(number);
       }
       public int GetSum()
       {
           return _numbers.Sum();
       }
   }

Inheritance

object NumberList

상속 회원들

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

Examples

목록의 포맷에 대한 정보를 얻는 방법을 보여줍니다.

string dataDir = RunExamples.GetDataDir_Text();
   Document oneFile = new Document(dataDir + "ApplyNumberingOnText.one");
   IList<outlineelement> nodes = oneFile.GetChildNodes<outlineelement>();
   foreach (OutlineElement node in nodes)
   {
      if (node.NumberList != null)
      {
         NumberList list = node.NumberList;
         Console.WriteLine("Font Name: " + list.Font);
         Console.WriteLine("Font Length: " + list.Font.Length);
         Console.WriteLine("Font Size: " + list.FontSize);
         Console.WriteLine("Font Color: " + list.FontColor);
         Console.WriteLine("Font format: " + list.Format);
         Console.WriteLine("Is bold: " + list.IsBold);
         Console.WriteLine("Is italic: " + list.IsItalic);
         Console.WriteLine();
      }
   }

중국어 번호를 사용하여 새로운 목록을 입력하는 방법을 보여줍니다.

string dataDir = RunExamples.GetDataDir_Text();
   Aspose.Note.Document doc = new Aspose.Note.Document();
   Aspose.Note.Page page = new Aspose.Note.Page(doc);
   Outline outline = new Outline(doc);
   ParagraphStyle defaultStyle = new ParagraphStyle { FontColor = Color.Black, FontName = "Arial", FontSize = 10 };
   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);
   dataDir = dataDir + "InsertChineseNumberList_out.one";
   doc.Save(dataDir);

새 목록을 숫자로 입력하는 방법을 보여줍니다.

string dataDir = RunExamples.GetDataDir_Text();
   Document doc = new Document();
   Aspose.Note.Page page = new Aspose.Note.Page(doc);
   Outline outline = new Outline(doc);
   ParagraphStyle defaultStyle = new ParagraphStyle { FontColor = Color.Black, FontName = "Arial", FontSize = 10 };
   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);
   outline.AppendChildLast(outlineElem1);
   outline.AppendChildLast(outlineElem2);
   outline.AppendChildLast(outlineElem3);
   page.AppendChildLast(outline);
   doc.AppendChildLast(page);
   dataDir = dataDir + "ApplyNumberingOnText_out.one";
   doc.Save(dataDir);

Constructors

숫자 목록(string, string, int)

Aspose.Note.NumberList 클래스의 새로운 예를 시작합니다.이 사례는 총격 된 목록을 나타냅니다.

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

Parameters

bulletedSymbol string

총을 나타내는 상징이다.

font string

총에 대한 글꼴이 있습니다.

fontSize int

총알에 대한 글꼴 크기.

숫자 목록(string, NumberFormat, string, int)

Aspose.Note.NumberList 클래스의 새로운 예를 시작합니다.이 예제는 숫자 목록을 나타냅니다.

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

Parameters

format string

번호화된 헤더의 형식입니다.

numberFormat NumberFormat

헤더에서 숫자의 형식입니다.

font string

번호화된 헤더를 위한 글꼴입니다.

fontSize int

숫자 헤더에 대한 글꼴 크기.

Properties

Font

글꼴의 이름을 얻거나 설정합니다.

public string Font
   {
      get
      {
         return this._font;
      }
      set
      {
         this._font = value;
      }
   }

부동산 가치

string

Examples

목록의 포맷에 대한 정보를 얻는 방법을 보여줍니다.

string dataDir = RunExamples.GetDataDir_Text();
   Document oneFile = new Document(dataDir + "ApplyNumberingOnText.one");
   IList<outlineelement> nodes = oneFile.GetChildNodes<outlineelement>();
   foreach (OutlineElement node in nodes)
   {
       if (node.NumberList != null)
       {
           NumberList list = node.NumberList;
           Console.WriteLine("Font Name: " + list.Font);
           Console.WriteLine("Font Length: " + list.Font.Length);
           Console.WriteLine("Font Size: " + list.FontSize);
           Console.WriteLine("Font Color: " + list.FontColor);
           Console.WriteLine("Font format: " + list.Format);
           Console.WriteLine("Is bold: " + list.IsBold);
           Console.WriteLine("Is italic: " + list.IsItalic);
           Console.WriteLine();
       }
   }

FontColor

글꼴 색깔을 얻거나 설정합니다.

public Color FontColor
   {
      get;
      set;
   }

부동산 가치

Color

Examples

목록의 포맷에 대한 정보를 얻는 방법을 보여줍니다.

string dataDir = RunExamples.GetDataDir_Text();
   Document oneFile = new Document(dataDir + "ApplyNumberingOnText.one");
   IList<outlineelement> nodes = oneFile.GetChildNodes<outlineelement>();
   foreach (OutlineElement node in nodes)
   {
       if (node.NumberList != null)
       {
           NumberList list = node.NumberList;
           Console.WriteLine("Font Name: " + list.Font);
           Console.WriteLine("Font Length: " + list.Font.Length);
           Console.WriteLine("Font Size: " + list.FontSize);
           Console.WriteLine("Font Color: " + list.FontColor);
           Console.WriteLine("Font format: " + list.Format);
           Console.WriteLine("Is bold: " + list.IsBold);
           Console.WriteLine("Is italic: " + list.IsItalic);
           Console.WriteLine();
       }
   }

FontSize

글꼴 크기를 얻거나 설정합니다.

public int FontSize
   {
      get;
      set;
   }

부동산 가치

int

Examples

목록의 포맷에 대한 정보를 얻는 방법을 보여줍니다.

string dataDir = RunExamples.GetDataDir_Text();
   Document oneFile = new Document(dataDir + "ApplyNumberingOnText.one");
   IList<outlineelement> nodes = oneFile.GetChildNodes<outlineelement>();
   foreach (OutlineElement node in nodes)
   {
      if (node.NumberList != null)
      {
         NumberList list = node.NumberList;
         Console.WriteLine("Font Name: " + list.Font);
         Console.WriteLine("Font Length: " + list.Font.Length);
         Console.WriteLine("Font Size: " + list.FontSize);
         Console.WriteLine("Font Color: " + list.FontColor);
         Console.WriteLine("Font format: " + list.Format);
         Console.WriteLine("Is bold: " + list.IsBold);
         Console.WriteLine("Is italic: " + list.IsItalic);
         Console.WriteLine();
      }
   }

Format

수신 또는 라인 헤드의 형식을 설정합니다. 총알 목록에 대 한 공의 상징을 나타.

public string Format
   {
      get;
      set;
   }

부동산 가치

string

Examples

목록의 포맷에 대한 정보를 얻는 방법을 보여줍니다.

string dataDir = RunExamples.GetDataDir_Text();
   Document oneFile = new Document(dataDir + "ApplyNumberingOnText.one");
   IList<outlineelement> nodes = oneFile.GetChildNodes<outlineelement>();
   foreach (OutlineElement node in nodes)
   {
       if (node.NumberList != null)
       {
           NumberList list = node.NumberList;
           Console.WriteLine("Font Name: " + list.Font);
           Console.WriteLine("Font Length: " + list.Font.Length);
           Console.WriteLine("Font Size: " + list.FontSize);
           Console.WriteLine("Font Color: " + list.FontColor);
           Console.WriteLine("Font format: " + list.Format);
           Console.WriteLine("Is bold: " + list.IsBold);
           Console.WriteLine("Is italic: " + list.IsItalic);
           Console.WriteLine();
       }
   }

IsBold

텍스트 스타일이 용감한지 여부를 나타내는 값을 얻거나 설정합니다.

public bool IsBold
   {
      get;
      set;
   }

부동산 가치

bool

Examples

목록의 포맷에 대한 정보를 얻는 방법을 보여줍니다.

string dataDir = RunExamples.GetDataDir_Text();
   Document oneFile = new Document(dataDir + "ApplyNumberingOnText.one");
   IList<outlineelement> nodes = oneFile.GetChildNodes<outlineelement>();
   foreach (OutlineElement node in nodes)
   {
       if (node.NumberList != null)
       {
           NumberList list = node.NumberList;
           Console.WriteLine("Font Name: " + list.Font);
           Console.WriteLine("Font Length: " + list.Font.Length);
           Console.WriteLine("Font Size: " + list.FontSize);
           Console.WriteLine("Font Color: " + list.FontColor);
           Console.WriteLine("Font format: " + list.Format);
           Console.WriteLine("Is bold: " + list.IsBold);
           Console.WriteLine("Is italic: " + list.IsItalic);
           Console.WriteLine();
       }
   }

IsItalic

텍스트 스타일이 이탈리아어인지 여부를 나타내는 값을 얻거나 설정합니다.

public bool IsItalic
   {
      get;
      set;
   }

부동산 가치

bool

Examples

목록의 포맷에 대한 정보를 얻는 방법을 보여줍니다.

string dataDir = RunExamples.GetDataDir_Text();
   Document oneFile = new Document(dataDir + "ApplyNumberingOnText.one");
   IList<outlineelement> nodes = oneFile.GetChildNodes<outlineelement>();
   foreach (OutlineElement node in nodes)
   {
       if (node.NumberList != null)
       {
           NumberList list = node.NumberList;
           Console.WriteLine("Font Name: " + list.Font);
           Console.WriteLine("Font Length: " + list.Font.Length);
           Console.WriteLine("Font Size: " + list.FontSize);
           Console.WriteLine("Font Color: " + list.FontColor);
           Console.WriteLine("Font format: " + list.Format);
           Console.WriteLine("Is bold: " + list.IsBold);
           Console.WriteLine("Is italic: " + list.IsItalic);
           Console.WriteLine();
       }
   }

LastModifiedTime

마지막으로 변경된 시간을 얻거나 설정합니다.

public DateTime LastModifiedTime
   {
      get;
      set;
   }

부동산 가치

DateTime

NumberFormat

자동으로 번호화된 개체 그룹에 사용되는 숫자 형식을 얻거나 설정합니다.

public NumberFormat? NumberFormat
   {
      get;
      set;
   }

부동산 가치

NumberFormat ?

Restart

목록 항목의 자동 번호 가치를 초과하는 숫자 값을 얻거나 설정합니다.

public int Restart
   {
      get;
      set;
   }

부동산 가치

int

Methods

동등한 개체(Object)

지정된 개체가 현재의 개체와 동일한지 결정합니다.

public override bool Equals(object obj)
   {
   }

Parameters

obj object

그 물건을

Returns

bool

시스템 - Boolean

숫자 목록(NumberList)

지정된 개체가 현재의 개체와 동일한지 결정합니다.

public bool Equals(NumberList other)
   {
      if (other == null)
         return false;
      var thisLength = this._list.Count;
      var otherLength = other._list.Count;
      if (thisLength != otherLength)
         return false;
      for (int i = 0; i < thisLength; i++)
      {
         if (!this._list[i].Equals(other._list[i]))
            return false;
      }
      return true;
   }

Parameters

other NumberList

그 물건을

Returns

bool

시스템 - Boolean

하스 코드( )

그것은 그 유형에 대한 해시 기능으로 사용됩니다.

public override int GetHashCode()
   {
   }

Returns

int

시스템.Int32에 해당되는 글 1건

리스트 헤더(int)

숫자 목록 헤더를 얻습니다.

public string GetNumberedListHeader(int sequenceNumber)
{
}
In this case, since the input code is already formatted according to standard C# conventions, no changes are needed. However, if there were any indentation issues or missing spacing in the code, I would format it accordingly, while strictly adhering to the guidelines mentioned above.

Parameters

sequenceNumber int

숫자 목록에 있는 순서 번호.

Returns

string

지정된 순서 번호의 라인 표현.

 한국어