Example #1
0
 public bool Equals(ST_BorderStyle other)
 {
     if (other == (ST_BorderStyle)null)
     {
         return(false);
     }
     return(this._ooxmlEnumerationValue == other._ooxmlEnumerationValue);
 }
Example #2
0
        private void TestGetSetBorderXMLBean(BorderStyle border, ST_BorderStyle expected)
        {
            cellStyle.BorderTop = border;
            Assert.AreEqual(border, cellStyle.BorderTop);
            int borderId = (int)cellStyle.GetCoreXf().borderId;

            Assert.IsTrue(borderId > 0);
            //check changes in the underlying xml bean
            CT_Border ctBorder = stylesTable.GetBorderAt(borderId).GetCTBorder();

            Assert.AreEqual(expected, ctBorder.top.style);
        }
Example #3
0
 static ST_BorderStyle()
 {
     ST_BorderStyle.none             = new ST_BorderStyle("none");
     ST_BorderStyle.thin             = new ST_BorderStyle("thin");
     ST_BorderStyle.medium           = new ST_BorderStyle("medium");
     ST_BorderStyle.dashed           = new ST_BorderStyle("dashed");
     ST_BorderStyle.dotted           = new ST_BorderStyle("dotted");
     ST_BorderStyle.thick            = new ST_BorderStyle("thick");
     ST_BorderStyle._double          = new ST_BorderStyle("double");
     ST_BorderStyle.hair             = new ST_BorderStyle("hair");
     ST_BorderStyle.mediumDashed     = new ST_BorderStyle("mediumDashed");
     ST_BorderStyle.dashDot          = new ST_BorderStyle("dashDot");
     ST_BorderStyle.mediumDashDot    = new ST_BorderStyle("mediumDashDot");
     ST_BorderStyle.dashDotDot       = new ST_BorderStyle("dashDotDot");
     ST_BorderStyle.mediumDashDotDot = new ST_BorderStyle("mediumDashDotDot");
     ST_BorderStyle.slantDashDot     = new ST_BorderStyle("slantDashDot");
 }
 static ST_BorderStyle()
 {
     none             = new ST_BorderStyle("none");
     thin             = new ST_BorderStyle("thin");
     medium           = new ST_BorderStyle("medium");
     dashed           = new ST_BorderStyle("dashed");
     dotted           = new ST_BorderStyle("dotted");
     thick            = new ST_BorderStyle("thick");
     _double          = new ST_BorderStyle("double");
     hair             = new ST_BorderStyle("hair");
     mediumDashed     = new ST_BorderStyle("mediumDashed");
     dashDot          = new ST_BorderStyle("dashDot");
     mediumDashDot    = new ST_BorderStyle("mediumDashDot");
     dashDotDot       = new ST_BorderStyle("dashDotDot");
     mediumDashDotDot = new ST_BorderStyle("mediumDashDotDot");
     slantDashDot     = new ST_BorderStyle("slantDashDot");
 }
Example #5
0
 public CT_BorderPr()
 {
     //this.colorField = new CT_Color();
     this.styleField = ST_BorderStyle.none;
 }
Example #6
0
 public CT_BorderPr()
 {
     //this.colorField = new CT_Color();
     this.styleField = ST_BorderStyle.none;
 }
Example #7
0
 public CT_BorderPr()
 {
     this.styleField = ST_BorderStyle.none;
 }