Inheritance: CssFeatureBase
コード例 #1
0
 private CssMarginFeature(object newOwner, CssMarginFeature inheritFrom)
     : base(newOwner)
 {
     this.Left   = inheritFrom.Left;
     this.Top    = inheritFrom.Top;
     this.Right  = inheritFrom.Right;
     this.Bottom = inheritFrom.Bottom;
 }
コード例 #2
0
        public static bool dbugIsEq(dbugPropCheckReport rep, CssMarginFeature prop1, CssMarginFeature prop2)
        {
            int inCount = rep.Count;

            rep.Check("Left", CssLength.IsEq(prop1.Left, prop2.Left));
            rep.Check("Top", CssLength.IsEq(prop1.Top, prop2.Top));
            rep.Check("Right", CssLength.IsEq(prop1.Right, prop2.Right));
            rep.Check("Bottom", CssLength.IsEq(prop1.Bottom, prop2.Bottom));
            return(inCount == rep.Count);
        }
コード例 #3
0
ファイル: CssFeatures.cs プロジェクト: prepare/HTML-Renderer
 public static bool dbugIsEq(dbugPropCheckReport rep, CssMarginFeature prop1, CssMarginFeature prop2)
 {
     int inCount = rep.Count;
     rep.Check("Left", CssLength.IsEq(prop1.Left, prop2.Left));
     rep.Check("Top", CssLength.IsEq(prop1.Top, prop2.Top));
     rep.Check("Right", CssLength.IsEq(prop1.Right, prop2.Right));
     rep.Check("Bottom", CssLength.IsEq(prop1.Bottom, prop2.Bottom));
     return inCount == rep.Count;
 }
コード例 #4
0
ファイル: CssFeatures.cs プロジェクト: prepare/HTML-Renderer
 private CssMarginFeature(object newOwner, CssMarginFeature inheritFrom)
     : base(newOwner)
 {
     this.Left = inheritFrom.Left;
     this.Top = inheritFrom.Top;
     this.Right = inheritFrom.Right;
     this.Bottom = inheritFrom.Bottom;
 }