Class NoteCheckBox
Le nom : Aspose.Note Assemblée: Aspose.Note.dll (25.4.0)
Ils représentent une note qui peut différencier leur état entre complet et incomplète.
public sealed class NoteCheckBox : CheckBox, INoteTag, ITag, IEquatable<NoteCheckBox>
{
}
Inheritance
object ← CheckBox ← NoteCheckBox
Implements
INoteTag
,
ITag
,
IEquatable
I membri ereditari
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
Obtenez ou définissez la couleur de la lettre.
public Color FontColor
{
get;
set;
}
Valore di proprietà
Highlight
Obtenez ou mettez la couleur d’accent.
public Color Highlight
{
get;
set;
}
Valore di proprietà
Icon
Obtenez ou mettez l’icône.
public override TagIcon Icon
{
get;
}
Valore di proprietà
Label
Obtenez ou mettez le texte d’étiquette.
public string Label
{
get;
set;
}
Valore di proprietà
Methods
CréationBlueCheckBox(string)
Créez une nouvelle boîte de contrôle avec l’icône BlueCheckBoxEmpty et l’étiquette spécifiée.
public static NoteCheckBox CreateBlueCheckBox(string label = "To Do")
{
var checkBox = new NoteCheckBox();
checkBox.Text = label;
checkBox.Color = Color.Blue;
}
Parameters
label
string
L’étiquette du tag.
Returns
Le fichier Aspose.Note.NoteCheckBox.
CréationBlueCheckBox1(string)
Créez une nouvelle boîte de contrôle avec BlueCheckBox1Icon vide et étiquette spécifiée.
public static NoteCheckBox CreateBlueCheckBox1(string label = "To Do priority 1")
{
return new NoteCheckBox
{
Label = label,
BackgroundColor = Color.LightSkyBlue,
IsChecked = false
};
}
Parameters
label
string
L’étiquette du tag.
Returns
Le fichier Aspose.Note.NoteCheckBox.
CréationBlueCheckBox2(string)
Créez une nouvelle boîte de contrôle avec BlueCheckBox2Empty et l’étiquette spécifiée.
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
L’étiquette du tag.
Returns
Le fichier Aspose.Note.NoteCheckBox.
CréationBlueCheckBox3(string)
Créez une nouvelle boîte de contrôle avec BlueCheckBox3Empty et l’étiquette spécifiée.
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
L’étiquette du tag.
Returns
Le fichier Aspose.Note.NoteCheckBox.
CréationBlueExclamationCheckBox(string)
Créez une nouvelle boîte de contrôle avec BlueExclamationCheckBoxEmpty et l’étiquette spécifiée.
public static NoteCheckBox CreateBlueExclamationCheckBox(string label = "")
{
}
Parameters
label
string
L’étiquette du tag.
Returns
Le fichier Aspose.Note.NoteCheckBox.
CréationBlueFlagCheckBox(string)
Créez une nouvelle boîte de contrôle avec l’icône BlueFlagCheckBoxEmpty et le label spécifié.
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
L’étiquette du tag.
Returns
Le fichier Aspose.Note.NoteCheckBox.
CréationBluePersonCheckBox(string)
Créez une nouvelle boîte de contrôle avec l’icône BluePersonCheckBoxEmpty et l’étiquette spécifiée.
public static NoteCheckBox CreateBluePersonCheckBox(string label = "Discuss with <person a=\"\">")
{
}
Parameters
label
string
L’étiquette du tag.
Returns
Le fichier Aspose.Note.NoteCheckBox.
CréationBlueRightArrowCheckBox(string)
Créez une nouvelle boîte de contrôle avec BlueRightArrowCheckBoxIcône vide et étiquette spécifiée.
public static NoteCheckBox CreateBlueRightArrowCheckBox(string label = "Call back")
{
}
Parameters
label
string
L’étiquette du tag.
Returns
Le fichier Aspose.Note.NoteCheckBox.
CréationBlueStarCheckBox(string)
Créez une nouvelle boîte d’inspection avec l’icône BlueStarCheckBoxEmpty et le label spécifié.
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
L’étiquette du tag.
Returns
Le fichier Aspose.Note.NoteCheckBox.
CréerGreenCheckBox(String)
Créez une nouvelle boîte de contrôle avec l’icône GreenCheckBoxEmpty et l’étiquette spécifiée.
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
L’étiquette du tag.
Returns
Le fichier Aspose.Note.NoteCheckBox.
CréerGreenCheckBox1 (string)
Créez une nouvelle boîte de contrôle avec l’icône GreenCheckBox1Empty et l’étiquette spécifiée.
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
L’étiquette du tag.
Returns
Le fichier Aspose.Note.NoteCheckBox.
CréerGreenCheckBox2 (string)
Créez une nouvelle boîte de contrôle avec l’icône GreenCheckBox2Empty et l’étiquette spécifiée.
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
L’étiquette du tag.
Returns
Le fichier Aspose.Note.NoteCheckBox.
CréerGreenCheckBox3 (string)
Créez une nouvelle boîte de contrôle avec l’icône GreenCheckBox3Empty et l’étiquette spécifiée.
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
L’étiquette du tag.
Returns
Le fichier Aspose.Note.NoteCheckBox.
CréerGreenExclamationCheckBox(string)
Créez une nouvelle boîte de contrôle avec l’icône GreenExclamationCheckBoxEmpty et l’étiquette spécifiée.
public static NoteCheckBox CreateGreenExclamationCheckBox(string label = "")
{
}
Parameters
label
string
L’étiquette du tag.
Returns
Le fichier Aspose.Note.NoteCheckBox.
CréerGreenFlagCheckBox(string)
Créez une nouvelle boîte de contrôle avec l’icône GreenFlagCheckBoxEmpty et l’étiquette spécifiée.
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
L’étiquette du tag.
Returns
Le fichier Aspose.Note.NoteCheckBox.
CréerGreenPersonCheckBox(string)
Créez une nouvelle boîte de contrôle avec l’icône GreenPersonCheckBoxEmpty et l’étiquette spécifiée.
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
L’étiquette du tag.
Returns
Le fichier Aspose.Note.NoteCheckBox.
CréerGreenRightArrowCheckBox(string)
Créez une nouvelle boîte de contrôle avec l’icône GreenRightArrowCheckBoxEmpty et l’étiquette spécifiée.
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
L’étiquette du tag.
Returns
Le fichier Aspose.Note.NoteCheckBox.
CréerGreenStarCheckBox(string)
Créez une nouvelle boîte de contrôle avec l’icône GreenStarCheckBoxEmpty et l’étiquette spécifiée.
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
L’étiquette du tag.
Returns
Le fichier Aspose.Note.NoteCheckBox.
CréerRedFlagCheckBox(string)
Créez une nouvelle boîte d’inspection avec l’icône RedFlagCheckBoxEmpty et le label spécifié.
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
L’étiquette du tag.
Returns
Le fichier Aspose.Note.NoteCheckBox.
Création de YellowCheckBox(string)
Créez une nouvelle boîte de contrôle avec l’icône YellowCheckBoxEmpty et l’étiquette spécifiée.
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
L’étiquette du tag.
Returns
Le fichier Aspose.Note.NoteCheckBox.
Création de YellowCheckBox1 (string)
Créez une nouvelle boîte de contrôle avec YellowCheckBox1Icône vide et étiquette spécifiée.
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
L’étiquette du tag.
Returns
Le fichier Aspose.Note.NoteCheckBox.
CréerYellowCheckBox2 (string)
Créez une nouvelle boîte de contrôle avec l’icône YellowCheckBox2Empty et le label spécifié.
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
L’étiquette du tag.
Returns
Le fichier Aspose.Note.NoteCheckBox.
Création de YellowCheckBox3 (string)
Créez une nouvelle boîte de contrôle avec l’icône YellowCheckBox3Empty et le label spécifié.
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
L’étiquette du tag.
Returns
Le fichier Aspose.Note.NoteCheckBox.
CreateYellowExclamationCheckBox(string)
Créez une nouvelle boîte de contrôle avec l’icône YellowExclamationCheckBoxEmpty et l’étiquette spécifiée.
public static NoteCheckBox CreateYellowExclamationCheckbox(string label = "Client request")
{
}
Parameters
label
string
L’étiquette du tag.
Returns
Le fichier Aspose.Note.NoteCheckBox.
CréerYellowPersonCheckBox(string)
Créez une nouvelle boîte de contrôle avec l’icône YellowPersonCheckBoxEmpty et l’étiquette spécifiée.
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
L’étiquette du tag.
Returns
Le fichier Aspose.Note.NoteCheckBox.
CréationYellowRightArrowCheckBox(string)
Créez une nouvelle boîte de contrôle avec YellowRightArrowCheckBoxIcône vide et étiquette spécifiée.
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
L’étiquette du tag.
Returns
Le fichier Aspose.Note.NoteCheckBox.
Les équations (objet)
Determinare se l’oggetto specificato è uguale all’oggetto corrente.
public override bool Equals(object obj)
{
}
Parameters
obj
object
à l’objet.
Returns
Le système : Boolean.
Équations (NoteCheckBox)
Determinare se l’oggetto specificato è uguale all’oggetto corrente.
public bool Equals(NoteCheckBox other)
{
return (other != null) && (this._controlId == other._controlId);
}
Parameters
other
NoteCheckBox
à l’objet.
Returns
Le système : Boolean.
Résumé du code()
Il sert d’une fonction hash pour le type.
public override int GetHashCode()
{
}
Returns
Le système.Int32.