Class NoteCheckBox

Class NoteCheckBox

Název místa: Aspose.Note Shromáždění: Aspose.Note.dll (25.4.0)

Představují poznámkový štítek, který může rozdělovat jejich stav mezi úplným a neúplným.

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

Inheritance

object CheckBox NoteCheckBox

Implements

INoteTag , ITag , IEquatable

Dědiční členové

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

Obdržíte nebo nastavte barvu písma.

public Color FontColor
   {
      get;
      set;
   }

Hodnota nemovitosti

Color

Highlight

Obdržíte nebo nastavíte barvu.

public Color Highlight
   {
      get;
      set;
   }

Hodnota nemovitosti

Color

Icon

Obdržíte nebo nastavte ikonu.

public override TagIcon Icon
   {
      get;
   }

Hodnota nemovitosti

TagIcon

Label

Obdržíte nebo nastavte text štítku.

public string Label
   {
      get;
      set;
   }

Hodnota nemovitosti

string

Methods

VytvořteBlueCheckBox(string)

Vytvoří novou kontrolní krabici s ikonou BlueCheckBoxEmpty a specifikovanou etiketou.

public static NoteCheckBox CreateBlueCheckBox(string label = "To Do")
{
    var checkBox = new NoteCheckBox();
    checkBox.Text = label;
    checkBox.Color = Color.Blue;
}

Parameters

label string

Značka značky.

Returns

NoteCheckBox

Připojte se na ASPOSE.NoteCheckBox.

VytvořteBlueCheckBox1 (string)

Vytvoří novou kontrolní krabici s ikonou BlueCheckBox1Empty a specifikovanou etiketou.

public static NoteCheckBox CreateBlueCheckBox1(string label = "To Do priority 1")
{
    return new NoteCheckBox
    {
        Label = label,
        BackgroundColor = Color.LightSkyBlue,
        IsChecked = false
    };
}

Parameters

label string

Značka značky.

Returns

NoteCheckBox

Připojte se na ASPOSE.NoteCheckBox.

VytvořteBlueCheckBox2(string)

Vytvoří novou kontrolní krabici s ikonou BlueCheckBox2Empty a specifikovanou etiketou.

public static NoteCheckBox CreateBlueCheckBox2(string label = "")
{
    var checkBox = new NoteCheckBox();
    checkBox.Name = "CreateBlueCheckBox2";
    checkBox.Text = label;
    checkBox.BackColor = System.Drawing.Color.FromArgb(51, 153, 255);
    checkBox.ForeColor = System.Drawing.Color.White;
    checkBox.Font = new System.Drawing.Font("Arial", 8.25F, System.Drawing.FontStyle.Regular);
    checkBox.OnCheckChanged += (sender, e) =>
    {
        if (e.NewValue)
            checkBox.BackColor = System.Drawing.Color.FromArgb(102, 204, 255);
        else
            checkBox.BackColor = System.Drawing.Color.FromArgb(51, 153, 255);
    };
    return checkBox;
}

Parameters

label string

Značka značky.

Returns

NoteCheckBox

Připojte se na ASPOSE.NoteCheckBox.

VytvořteBlueCheckBox3(string)

Vytvoří novou kontrolní krabici s ikonou BlueCheckBox3Empty a specifikovanou etiketou.

public static NoteCheckBox CreateBlueCheckBox3(string label = "")
{
    var cb = new Aspose.Words.CheckBox();
    cb.FillColor = System.Drawing.Color.Blue;
    cb.BorderBottomColor = System.Drawing.Color.Black;
    if (!string.IsNullOrEmpty(label))
    {
        cb.TextFrame.Text = label;
    }
    return cb;
}

Parameters

label string

Značka značky.

Returns

NoteCheckBox

Připojte se na ASPOSE.NoteCheckBox.

VytvořteBlueExclamationCheckBox(string)

Vytvoří novou kontrolní krabici s ikonou BlueExclamationCheckBoxEmpty a specifikovanou etiketou.

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

Parameters

label string

Značka značky.

Returns

NoteCheckBox

Připojte se na ASPOSE.NoteCheckBox.

VytvořteBlueFlagCheckBox(string)

Vytvoří novou kontrolní krabici s ikonou BlueFlagCheckBoxEmpty a specifikovanou etiketou.

public static Aspose.Words.CheckBox CreateBlueFlagCheckBox(string label = "")
   {
       var checkBox = new Aspose.Words.CheckBox();
       checkBox.FillColor = System.Drawing.Color.FromArgb(32, 102, 255); // Blue color
       if (!string.IsNullOrEmpty(label))
           checkBox.Text = label;
       return checkBox;
   }

Parameters

label string

Značka značky.

Returns

NoteCheckBox

Připojte se na ASPOSE.NoteCheckBox.

VytvořteBluePersonCheckBox(string)

Vytvoří novou kontrolní krabici s ikonou BluePersonCheckBoxEmpty a specifikovanou etiketou.

public static NoteCheckBox CreateBluePersonCheckBox(string label = "Discuss with <person a=\"\">")
{
}

Parameters

label string

Značka značky.

Returns

NoteCheckBox

Připojte se na ASPOSE.NoteCheckBox.

VytvořteBlueRightArrowCheckBox(string)

Vytvoří novou kontrolní krabici s ikonou BlueRightArrowCheckBoxEmpty a specifikovanou etiketou.

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

Parameters

label string

Značka značky.

Returns

NoteCheckBox

Připojte se na ASPOSE.NoteCheckBox.

VytvořteBlueStarCheckBox(string)

Vytvoří novou kontrolní krabici s ikonou BlueStarCheckBoxEmpty a specifikovanou etiketou.

public static Aspose.Words.CheckBox CreateBlueStarCheckBox(string label = "")
   {
       var checkBox = new Aspose.Words.CheckBox();
       checkBox.CellFormat.Shading.BackgroundColor = Aspose.Words.Color.FromArgb(0, 0, 255); // Blue
       checkBox.CellFormat.Shading.FillBackgroundColor.Color = Aspose.Words.Color.FromArgb(192, 192, 255); // Light blue (for stars)
       checkBox.CellFormat.Border.Color = Aspose.Words.Color.FromArgb(0, 0, 255); // Blue border
       if (!string.IsNullOrEmpty(label))
           checkBox.Text = label;
       return checkBox;
   }

Parameters

label string

Značka značky.

Returns

NoteCheckBox

Připojte se na ASPOSE.NoteCheckBox.

VytvořteGreenCheckBox(string)

Vytváří novou kontrolní krabici s GreenCheckBoxEmpty ikonou a specifikovanou etiketou.

public static NoteCheckBox CreateGreenCheckBox(string label = "")
{
    var checkBox = new NoteCheckBox();
    checkBox.FontColor = System.Drawing.Color.Lime;
    checkBox.CheckedBackgroundColor = System.Drawing.Color.LimeGreen;
    checkBox.UncheckedBackgroundColor = System.Drawing.Color.WhiteSmoke;
    if (!string.IsNullOrEmpty(label))
        checkBox.Text = label;
    return checkBox;
}

Parameters

label string

Značka značky.

Returns

NoteCheckBox

Připojte se na ASPOSE.NoteCheckBox.

VytvořteGreenCheckBox1 (string)

Vytvoří novou kontrolní krabici s GreenCheckBox1Empty ikonou a specifikovanou etiketou.

public static NoteCheckBox CreateGreenCheckBox1(string label = "")
{
    var checkBox = new NoteCheckBox();
    checkBox.Name = "CreateGreenCheckBox1";
    checkBox.Label = label;
    checkBox.BackgroundColor = System.Drawing.Color.FromArgb(76, 255, 73); // RGB for Green
    return checkBox;
}

Parameters

label string

Značka značky.

Returns

NoteCheckBox

Připojte se na ASPOSE.NoteCheckBox.

VytvořteGreenCheckBox2 (string)

Vytváří novou kontrolní krabici s GreenCheckBox2Empty ikonou a specifikovanou etiketou.

public static NoteCheckBox CreateGreenCheckBox2(string label = "")
   {
      Aspose.Words.CheckBox checkBox = new Aspose.Words.CheckBox();
      checkBox.Shading.BackgroundColor = System.Drawing.ColorTranslator.FromHtml("#9CCC65"); // Green color
      checkBox.IsSelected = false;
      checkBox.LinkFieldId = "";
      if (!string.IsNullOrEmpty(label))
         checkBox.Text = label;
      return checkBox;
   }

Parameters

label string

Značka značky.

Returns

NoteCheckBox

Připojte se na ASPOSE.NoteCheckBox.

VytvořteGreenCheckBox3 (string)

Vytváří novou kontrolní krabici s GreenCheckBox3Empty ikonou a specifikovanou etiketou.

public static NoteCheckBox CreateGreenCheckBox3(string label = "")
{
    var checkBox = new NoteField();
    checkBox.IsFieldShaded = true;
    checkBox.Shading.Color = System.Drawing.ColorTranslator.FromHtml("#00FF00");
    checkBox.Text = label;
    checkBox.Font.Bold = true;
    checkBox.Font.Size = 12;
    checkBox.Font.Name = "Arial";
    return checkBox;
}

Parameters

label string

Značka značky.

Returns

NoteCheckBox

Připojte se na ASPOSE.NoteCheckBox.

VytvořteGreenExclamationCheckBox(string)

Vytvořte novou kontrolní krabici s ikonou GreenExclamationCheckBoxEmpty a specifikovanou etiketou.

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

Parameters

label string

Značka značky.

Returns

NoteCheckBox

Připojte se na ASPOSE.NoteCheckBox.

VytvořteGreenFlagCheckBox(string)

Vytvoří novou kontrolní krabici s GreenFlagCheckBoxEmpty ikonou a specifikovanou etiketou.

public static NoteCheckBox CreateGreenFlagCheckBox(string label = "")
{
    var checkBox = new CheckBox();
    checkBox.FillColor = System.Drawing.ColorTranslator.FromHtml("#00FF00"); // Green color
    checkBox.BorderColor = System.Drawing.ColorTranslator.FromHtml("#00FF00"); // Green color for border
    checkBox.CheckedBackgroundColor = System.Drawing.ColorTranslator.FromHtml("#00FF00"); // Green color for checked background
    checkBox.UncheckedBackgroundColor = System.Drawing.SystemColors.Window;
    checkBox.Text = label;
    return checkBox;
}

Parameters

label string

Značka značky.

Returns

NoteCheckBox

Připojte se na ASPOSE.NoteCheckBox.

VytvořteGreenPersonCheckBox(string)

Vytvořte novou kontrolní krabici s ikonou GreenPersonCheckBoxEmpty a specifikovanou etiketou.

public static Aspose.Words.CheckBox CreateGreenPersonCheckBox(string label = "")
   {
       Aspose.Words.CheckBox checkBox = new Aspose.Words.CheckBox();
       checkBox.Format.TextFrame.Shape.Fill.Color = System.Drawing.ColorTranslator.FromHtml("#008000"); // Green color
       if (!string.IsNullOrEmpty(label))
           checkBox.ApplyProperty(Aspose.Words.FieldUnit.Character, Aspose.Words.Property.Shapes.TextFrame.Text, label);
       return checkBox;
   }

Parameters

label string

Značka značky.

Returns

NoteCheckBox

Připojte se na ASPOSE.NoteCheckBox.

VytvořteGreenRightArrowCheckBox(string)

Vytvořte novou kontrolní krabici s ikonou GreenRightArrowCheckBoxEmpty a specifikovanou etiketou.

public static NoteCheckBox CreateGreenRightArrowCheckBox(string label = "")
{
}
To improve readability, it's common to add a blank line between methods within a class. Here is the reformatted code with that additional space:
public static NoteCheckBox CreateGreenRightArrowCheckBox(string label = "")
{
}

Parameters

label string

Značka značky.

Returns

NoteCheckBox

Připojte se na ASPOSE.NoteCheckBox.

VytvořteGreenStarCheckBox(string)

Vytvoří novou kontrolní krabici s GreenStarCheckBoxEmpty ikonou a specifikovanou etiketou.

public static NoteCheckBox CreateGreenStarCheckBox(string label = "")
{
}
The above code has been reformatted according to C# conventions, including proper indentation and spacing. The provided code retains its original functionality and variable/method names.

Parameters

label string

Značka značky.

Returns

NoteCheckBox

Připojte se na ASPOSE.NoteCheckBox.

VytvořteRedFlagCheckBox(string)

Vytvořte novou kontrolní krabici s ikonou RedFlagCheckBoxEmpty a specifikovanou etiketou.

public static NoteCheckBox CreateRedFlagCheckBox(string label = "")
{
}
This is an empty method declaration with a single public, static method `CreateRedFlagCheckBox` that takes an optional string parameter named `label`. The body of the method is not included in your input, so I have not reformatted it.

Parameters

label string

Značka značky.

Returns

NoteCheckBox

Připojte se na ASPOSE.NoteCheckBox.

VytvořitYellowCheckBox(string)

Vytvoří novou kontrolní krabici s ikonou YellowCheckBoxEmpty a specifikovanou etiketou.

public static NoteCheckBox CreateYellowCheckBox(string label = "")
{
}
Here's a more complete version with an example of the inner implementation:
using Aspose.Words;
public static NoteCheckbox CreateYellowCheckBox(string label = "")
{
    CheckBox yellowCheckBox = new CheckBox();
    yellowCheckBox.FillColor = System.Drawing.Color.Yellow;
    if (!string.IsNullOrEmpty(label))
        yellowCheckBox.Text = label;
    return yellowCheckBox;
}

Parameters

label string

Značka značky.

Returns

NoteCheckBox

Připojte se na ASPOSE.NoteCheckBox.

VytvořteYellowCheckBox1(string)

Vytvoří novou kontrolní krabici s ikonou YellowCheckBox1Empty a specifikovanou etiketou.

public static Aspose.Words.CheckBox CreateYellowCheckBox1(string label = "")
   {
      Aspose.Words.CheckBox checkBox = new Aspose.Words.CheckBox();
      checkBox.FillColor = System.Drawing.Color.Yellow;
      checkBox.Label = label;
      return checkBox;
   }

Parameters

label string

Značka značky.

Returns

NoteCheckBox

Připojte se na ASPOSE.NoteCheckBox.

VytvořteYellowCheckBox2(string)

Vytvoří novou kontrolní krabici s ikonou YellowCheckBox2Empty a specifikovanou etiketou.

public static CheckBox CreateYellowCheckBox2(string label = "To Do priority 2")
{
    var checkBox = new CheckBox() { NormalStyle.BackColor = System.Drawing.Color.Yellow };
    checkBox.Updatable = true;
    checkBox.ParagraphFormat.Alignment = WdParagraphAlignment.wdAlignParagraphLeft;
    checkBox.ParagraphFormat.LineSpacingRule = WdLineSpacing.wdLineSpaceSingle;
    checkBox.Text = label;
    return checkBox;
}

Parameters

label string

Značka značky.

Returns

NoteCheckBox

Připojte se na ASPOSE.NoteCheckBox.

VytvořteYellowCheckBox3(string)

Vytvoří novou kontrolní krabici s ikonou YellowCheckBox3Empty a specifikovanou etiketou.

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

Parameters

label string

Značka značky.

Returns

NoteCheckBox

Připojte se na ASPOSE.NoteCheckBox.

VytvořteYellowExclamationCheckBox(string)

Vytvoří novou kontrolní krabici s ikonou YellowExclamationCheckBoxEmpty a specifikovanou etiketou.

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

Parameters

label string

Značka značky.

Returns

NoteCheckBox

Připojte se na ASPOSE.NoteCheckBox.

VytvořteYellowPersonCheckBox(string)

Vytvoří novou kontrolní krabici s ikonou YellowPersonCheckBoxEmpty a specifikovanou etiketou.

public static Aspose.Words.CheckBox CreateYellowPersonCheckbox(string label = "Discuss with manager")
   {
      var checkBox = new Aspose.Words.CheckBox();
      checkBox.FillColor = System.Drawing.Color.Yellow;
      checkBox.Label = label;
      return checkBox;
   }

Parameters

label string

Značka značky.

Returns

NoteCheckBox

Připojte se na ASPOSE.NoteCheckBox.

VytvořteYellowRightArrowCheckBox(string)

Vytvoří novou kontrolní krabici s ikonou YellowRightArrowCheckBoxEmpty a specifikovanou etiketou.

public static Aspose.Words.CheckBox CreateYellowRightArrowCheckBox(string label = "")
   {
       var checkBox = new Aspose.Words.CheckBox();
       checkBox.FillColor = System.Drawing.Color.Yellow;
       checkBox.LineWidth = 3;
       checkBox.LeftMargin = 0;
       checkBox.TopMargin = 0;
       checkBox.RightMargin = 12;
       checkBox.BottomMargin = 0;
       if (!string.IsNullOrEmpty(label))
           checkBox.Text = label;
       var arrow = new Aspose.Words.Shape();
       arrow.Type = Aspose.Words.ShapeType.Rectangle;
       arrow.FillFormat.ForeColor.Color = System.Drawing.Color.Black;
       arrow.LineFormat.Width = 3;
       arrow.AddFormattedShape(0, 5, 12, 0, 0, 12, 6);
       arrow.AddFormattedShape(0, 0, 0, 6, 6, 0, 0);
       arrow.AddFormattedShape(12, 0, 12, 6, 6, 6, 0);
       checkBox.Shapes.Add(arrow);
       return checkBox;
   }

Parameters

label string

Značka značky.

Returns

NoteCheckBox

Připojte se na ASPOSE.NoteCheckBox.

Jednotlivé objekty (objekt)

Určuje, zda je specifikovaný objekt rovný aktuálnímu objektu.

public override bool Equals(object obj)
   {
   }

Parameters

obj object

a předmětem.

Returns

bool

Systém je Boolean.

Srovnání (NoteCheckBox)

Určuje, zda je specifikovaný objekt rovný aktuálnímu objektu.

public bool Equals(NoteCheckBox other)
   {
      return (other != null) && (this._controlId == other._controlId);
   }

Parameters

other NoteCheckBox

a předmětem.

Returns

bool

Systém je Boolean.

Připravte si kód()

Slouží jako hash funkce pro typ.

public override int GetHashCode()
   {
   }

Returns

int

Vlastní systém.Int32.

 Čeština