NoteTag
Overview
NoteTag is a class in Aspose.Note for Python.
Represents a tag attached to a OneNote node, providing visual status indicators and labels.
NoteTag represents a tag attached to a content node such as RichText, Image, or Table. Tags carry visual metadata: an icon shape, a label, a color, and a TagStatus value that indicates whether the task is active, completed, or deferred. Access tags via node.Tags (a list of NoteTag objects). Tags are often used to build task lists from OneNote content in automated workflows.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
Label | str | None | Read | The Label for this NoteTag. |
Icon | int | None | Read | The Icon for this NoteTag. |
Status | TagStatus | Read | The Status for this NoteTag. |
Highlight | int | None | Read | The Highlight for this NoteTag. |
CreationTime | datetime | None | Read | The CreationTime for this NoteTag. |
CompletedTime | datetime | None | Read | The CompletedTime for this NoteTag. |
FontColor | int | None | Read | The FontColor for this NoteTag. |
Methods
| Signature | Description |
|---|---|
__init__(construction_token: object | None, Label: str | None, Icon: int | None, Status: TagStatus | int | str | None, Highlight: int | None, CreationTime: datetime | int | None, CompletedTime: datetime | int | None, FontColor: int | None) | Initializes a new NoteTag with the specified display and status properties. |
CreateYellowStar(label: str | None) → NoteTag | Creates a NoteTag with a yellow star icon and optional label. |
CreateQuestionMark(label: str | None) → NoteTag | Creates a NoteTag with a question mark icon and optional label. |
CreateMusicalNote(label: str | None) → NoteTag | Creates a NoteTag with a musical note icon and optional label. |