Esempio n. 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Protection"/> struct.
 /// </summary>
 /// <param name="value">The value.</param>
 /// <param name="protectionKind">Kind of the protection.</param>
 public Protection(string value, ProtectionKind protectionKind)
 {
     When           = When.Normal;
     Value          = value;
     ProtectionKind = protectionKind;
 }
Esempio n. 2
0
 void IExcelCommand.Read(BinaryReader r)
 {
     Value          = r.ReadBoolean() ? r.ReadString() : null;
     ProtectionKind = (ProtectionKind)r.ReadInt32();
 }
Esempio n. 3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Protection"/> struct.
 /// </summary>
 /// <param name="row">The row.</param>
 /// <param name="col">The col.</param>
 /// <param name="protectionKind">Kind of the protection.</param>
 public Protection(int row, int col, ProtectionKind protectionKind)
     : this(ExcelService.GetAddress(row, col), protectionKind)
 {
 }