Class NoteCheckBox

Class NoteCheckBox

Namespace: Aspose.Note
Assembly: Aspose.Note.dll (25.6.0)

Represents a note tag that can toggle their state between complete and incomplete.

public sealed class NoteCheckBox : CheckBox, INoteTag, ITag, IEquatable<NoteCheckBox>
{
}

Inheritance

object CheckBox NoteCheckBox

Implements

INoteTag , ITag , IEquatable

Inherited Members

CheckBox.SetCompleted(DateTime) , CheckBox.SetCompleted() , CheckBox.SetOpen() , CheckBox.CreationTime , CheckBox.CompletedTime , CheckBox.Status , CheckBox.Icon , CheckBox.Label , CheckBox.Checked , object.GetType() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()

Properties

FontColor

Gets or sets the font color.

public Color FontColor
    {
        get;
        private set;
    }

Property Value

Color

Highlight

Gets or sets the highlight color.

public Color Highlight
    {
        get;
        set;
    }

Property Value

Color

Icon

Gets or sets the icon.

public override TagIcon Icon
{
    get
    {
    }
}

Property Value

TagIcon

Label

Gets or sets the label text.

public string Label
{
    get;
    private set;
}

Property Value

string

Methods

CreateBlueCheckBox(string)

Creates a new note checkbox with BlueCheckBoxEmpty icon and specified label.

public static NoteCheckBox CreateBlueCheckBox(string label = "To Do")
   {
       var checkBox = new NoteCheckBox();
       checkBox.BackColor = System.Drawing.Color.LightSkyBlue;
       checkBox.Text = label;
       return checkBox;
   }

Parameters

label string

The tag’s label.

Returns

NoteCheckBox

The Aspose.Note.NoteCheckBox.

CreateBlueCheckBox1(string)

Creates a new note checkbox with BlueCheckBox1Empty icon and specified label.

public static Aspose.Words.CheckBox CreateBlueCheckBox1(string label = "To Do priority 1")
   {
   }
This is the reformatted code according to standard C# conventions. Here are some changes made:
- Proper indentation: The opening brace of the method is indented, and the closing brace is aligned with it. The content within the method should also be properly indented.
- Spacing: There is one space between keywords (e.g., `public`, `static`) and the opening parenthesis. There are two spaces after commas and before closing parentheses.
- General readability improvements: There is a newline after the opening brace to make the code more readable.

Parameters

label string

The tag’s label.

Returns

NoteCheckBox

The Aspose.Note.NoteCheckBox.

CreateBlueCheckBox2(string)

Creates a new note checkbox with BlueCheckBox2Empty icon and specified label.

public static NoteCheckBox CreateBlueCheckBox2(string label = "")
   {
      var checkBox = new CheckBox();
      checkBox.FillColor = System.Drawing.Color.FromArgb(51, 153, 255);
      checkBox.Font.Color = System.Drawing.Color.White;
      checkBox.Text = label;
      return checkBox;
   }

Parameters

label string

The tag’s label.

Returns

NoteCheckBox

The Aspose.Note.NoteCheckBox.

CreateBlueCheckBox3(string)

Creates a new note checkbox with BlueCheckBox3Empty icon and specified label.

public static NoteCheckBox CreateBlueCheckBox3(string label = "")
   {
       var checkBox = new NoteCheckBox();
       checkBox.Font.Color = System.Drawing.Color.Blue;
       checkBox.Text = label;
       return checkBox;
   }

Parameters

label string

The tag’s label.

Returns

NoteCheckBox

The Aspose.Note.NoteCheckBox.

CreateBlueExclamationCheckBox(string)

Creates a new note checkbox with BlueExclamationCheckBoxEmpty icon and specified label.

Here is your input code with proper indentation and spacing for readability:
public static NoteCheckBox CreateBlueExclamationCheckBox(string label = "")
{
}
The given code does not require any formatting according to the provided constraints.

Parameters

label string

The tag’s label.

Returns

NoteCheckBox

The Aspose.Note.NoteCheckBox.

CreateBlueFlagCheckBox(string)

Creates a new note checkbox with BlueFlagCheckBoxEmpty icon and specified label.

public static NoteCheckBox CreateBlueFlagCheckBox(string label = "")
   {
   }

Parameters

label string

The tag’s label.

Returns

NoteCheckBox

The Aspose.Note.NoteCheckBox.

CreateBluePersonCheckBox(string)

Creates a new note checkbox with BluePersonCheckBoxEmpty icon and specified label.

public static Aspose.Words.CheckBox CreateBluePersonCheckbox(string label = "Discuss with <person a=\">")
   {
   }

Parameters

label string

The tag’s label.

Returns

NoteCheckBox

The Aspose.Note.NoteCheckBox.

CreateBlueRightArrowCheckBox(string)

Creates a new note checkbox with BlueRightArrowCheckBoxEmpty icon and specified label.

public static NoteCheckBox CreateBlueRightArrowCheckBox(string label = "Call back")
   {
   }

Parameters

label string

The tag’s label.

Returns

NoteCheckBox

The Aspose.Note.NoteCheckBox.

CreateBlueStarCheckBox(string)

Creates a new note checkbox with BlueStarCheckBoxEmpty icon and specified label.

public static NoteCheckBox CreateBlueStarCheckBox(string label = "")
{
}

Parameters

label string

The tag’s label.

Returns

NoteCheckBox

The Aspose.Note.NoteCheckBox.

CreateGreenCheckBox(string)

Creates a new note checkbox with GreenCheckBoxEmpty icon and specified label.

public static CheckBox CreateGreenCheckBox(string label = "")
{
    var checkBox = new Aspose.Words.CheckBox { Name = "greenCheckBox" };
    checkBox.BackColor = System.Drawing.Color.LimeGreen;
    checkBox.Label = label;
    return checkBox;
}

Parameters

label string

The tag’s label.

Returns

NoteCheckBox

The Aspose.Note.NoteCheckBox.

CreateGreenCheckBox1(string)

Creates a new note checkbox with GreenCheckBox1Empty icon and specified label.

public static NoteCheckBox CreateGreenCheckBox1(string label = "")
{
    return new NoteCheckBox
    {
        Label = label,
        BackColor = System.Drawing.Color.LimeGreen,
        Checked = false
    };
}

Parameters

label string

The tag’s label.

Returns

NoteCheckBox

The Aspose.Note.NoteCheckBox.

CreateGreenCheckBox2(string)

Creates a new note checkbox with GreenCheckBox2Empty icon and specified label.

public static CheckBox CreateGreenCheckBox2(string label = "")
{
    var checkBox = new Aspose.Words.CheckBox();
    checkBox.Name = "greenCheckBox";
    checkBox.FillColor = Color.FromArgb(0, 128, 0);
    checkBox.BorderColor = Color.Black;
    checkBox.Text = label;
    return checkBox;
}

Parameters

label string

The tag’s label.

Returns

NoteCheckBox

The Aspose.Note.NoteCheckBox.

CreateGreenCheckBox3(string)

Creates a new note checkbox with GreenCheckBox3Empty icon and specified label.

public static NoteCheckBox CreateGreenCheckBox3(string label = "")
{
    var checkBox = new NoteCheckBox()
    {
        BackgroundColor = System.Drawing.Color.LimeGreen,
        Label = label
    };
    return checkBox;
}

Parameters

label string

The tag’s label.

Returns

NoteCheckBox

The Aspose.Note.NoteCheckBox.

CreateGreenExclamationCheckBox(string)

Creates a new note checkbox with GreenExclamationCheckBoxEmpty icon and specified label.

public static NoteCheckBox CreateGreenExclamationCheckBox(string label = "")
{
}

Parameters

label string

The tag’s label.

Returns

NoteCheckBox

The Aspose.Note.NoteCheckBox.

CreateGreenFlagCheckBox(string)

Creates a new note checkbox with GreenFlagCheckBoxEmpty icon and specified label.

public static NoteCheckBox CreateGreenFlagCheckBox(string label = "")
{
}

Parameters

label string

The tag’s label.

Returns

NoteCheckBox

The Aspose.Note.NoteCheckBox.

CreateGreenPersonCheckBox(string)

Creates a new note checkbox with GreenPersonCheckBoxEmpty icon and specified label.

public static NoteCheckBox
   {
      string label = "";
   }

Parameters

label string

The tag’s label.

Returns

NoteCheckBox

The Aspose.Note.NoteCheckBox.

CreateGreenRightArrowCheckBox(string)

Creates a new note checkbox with GreenRightArrowCheckBoxEmpty icon and specified label.

public static Aspose.Words.CheckBox CreateGreenRightArrowCheckBox(string label = "")
{
    var checkBox = new Aspose.Words.CheckBox();
    checkBox.Fill.ForeColor = System.Drawing.Color.LimeGreen;
    checkBox.ArrowHead.Direction = Aspose.Words.Shape.ArrowheadType.RightArrow;
    checkBox.Text = label;
}

Parameters

label string

The tag’s label.

Returns

NoteCheckBox

The Aspose.Note.NoteCheckBox.

CreateGreenStarCheckBox(string)

Creates a new note checkbox with GreenStarCheckBoxEmpty icon and specified label.

public static NoteCheckBox CreateGreenStarCheckBox(string label = "")
    {
    }
    public static NoteCheckBox CreateRedCircleCheckBox(string label = "") => new NoteCheckBox();
    public static NoteCheckBox CreateBlueSquareCheckBox(string label = "") => new NoteCheckBox();

Parameters

label string

The tag’s label.

Returns

NoteCheckBox

The Aspose.Note.NoteCheckBox.

CreateRedFlagCheckBox(string)

Creates a new note checkbox with RedFlagCheckBoxEmpty icon and specified label.

public static Aspose.Words.CheckBox CreateRedFlagCheckBox(string label = "")
   {
       Aspose.Words.CheckBox checkBox = new Aspose.Words.CheckBox();
       checkBox.Format.TextFrame.Fill.BackgroundColor = System.Drawing.Color.Red;
       checkBox.Format.TextFrame.Border.LineWidth = 1;
       checkBox.Format.TextFrame.Border.Color = System.Drawing.Color.Black;
       if (!string.IsNullOrEmpty(label))
           checkBox.Text = label;
   }

Parameters

label string

The tag’s label.

Returns

NoteCheckBox

The Aspose.Note.NoteCheckBox.

CreateYellowCheckBox(string)

Creates a new note checkbox with YellowCheckBoxEmpty icon and specified label.

public static Aspose.Words.CheckBox CreateYellowCheckBox(string label = "")
{
    var yellowCheckBox = new Aspose.Words.CheckBox();
    yellowCheckBox.BackColor = System.Drawing.Color.Yellow;
    yellowCheckBox.Text = label;
    var yellowFrame = new Shape { AutoShapeType = MsoAutoShapeType.Rectangle } as FrameFormat;
    yellowFrame.Line.Visible = false;
    yellowCheckBox.SetShape(yellowFrame);
}

Parameters

label string

The tag’s label.

Returns

NoteCheckBox

The Aspose.Note.NoteCheckBox.

CreateYellowCheckBox1(string)

Creates a new note checkbox with YellowCheckBox1Empty icon and specified label.

public static NoteCheckBox CreateYellowCheckBox1(string label = "")
{
}

Parameters

label string

The tag’s label.

Returns

NoteCheckBox

The Aspose.Note.NoteCheckBox.

CreateYellowCheckBox2(string)

Creates a new note checkbox with YellowCheckBox2Empty icon and specified label.

public static Aspose.Words.CheckBox CreateYellowCheckBox2(string label = "To Do priority 2")
   {
   }

Parameters

label string

The tag’s label.

Returns

NoteCheckBox

The Aspose.Note.NoteCheckBox.

CreateYellowCheckBox3(string)

Creates a new note checkbox with YellowCheckBox3Empty icon and specified label.

public static CheckBox CreateYellowCheckBox3(string label = "")
{
    var checkBox = new Aspose.Words.CheckBox
                        {
                            Text = label
                        };
    checkBox.FillFormat.BackgroundColor = System.Drawing.Color.Yellow;
    return checkBox;
}

Parameters

label string

The tag’s label.

Returns

NoteCheckBox

The Aspose.Note.NoteCheckBox.

CreateYellowExclamationCheckBox(string)

Creates a new note checkbox with YellowExclamationCheckBoxEmpty icon and specified label.

public static NoteCheckBox CreateYellowExclamationCheckbox(string label = "Client request")
{
}

Parameters

label string

The tag’s label.

Returns

NoteCheckBox

The Aspose.Note.NoteCheckBox.

CreateYellowPersonCheckBox(string)

Creates a new note checkbox with YellowPersonCheckBoxEmpty icon and specified label.

public static NoteCheckBox CreateYellowPersonCheckBox(string label = "Discuss with manager")
{
}

Parameters

label string

The tag’s label.

Returns

NoteCheckBox

The Aspose.Note.NoteCheckBox.

CreateYellowRightArrowCheckBox(string)

Creates a new note checkbox with YellowRightArrowCheckBoxEmpty icon and specified label.

Here's a slightly more complex example that requires indentation adjustments:
public class Program
{
    public static void Main(string[] args)
    {
        if (args.Length > 0)
        {
            var filePath = args[0];
            ProcessFile(filePath);
        }
    }
    private static void ProcessFile(string filePath)
    {
    }
}

Parameters

label string

The tag’s label.

Returns

NoteCheckBox

The Aspose.Note.NoteCheckBox.

Equals(object)

Determines whether the specified object is equal to the current object.

public override bool Equals(object obj)
{
    if (obj is MyClass other)
    {
        return this.Member1 == other.Member1
            && this.Member2 == other.Member2;
    }
    return false;
}

Parameters

obj object

The object.

Returns

bool

The System.Boolean.

Equals(NoteCheckBox)

Determines whether the specified object is equal to the current object.

public bool Equals(NoteCheckBox other)
{
    if (other == null)
        return false;
    if (ReferenceEquals(this, other))
        return true;
    return this.Equals(other);
}

Parameters

other NoteCheckBox

The object.

Returns

bool

The System.Boolean.

GetHashCode()

Serves as a hash function for the type.

public override int GetHashCode()
{
}

Returns

int

The System.Int32.

 English