Пример #1
0
 public override string GetValue(IContext objContext, SkinValueDefinition objValueDefinition)
 {
     string importantDeclarationValue = objValueDefinition.GetImportantDeclarationValue(objContext);
     if (this.mobjValue.All>0)
     {
         return string.Format("{0}:{1}px{2}", this.GetWebStyleName(), this.mobjValue.All, importantDeclarationValue);
     }
     return string.Format("{0}:{1}px {2}px {3}px {4}px{5}", new object[] { this.GetWebStyleName(), this.mobjValue.TopLeft, this.mobjValue.TopRight, this.mobjValue.BottomRight, this.mobjValue.BottomLeft, importantDeclarationValue });
 }
Пример #2
0
 public override string GetValue(IContext objContext, SkinValueDefinition objValueDefinition)
 {
     string importantDeclarationValue = objValueDefinition.GetImportantDeclarationValue(objContext);
     return string.Format("{0}:{1} {2}px {3}px {4}px{5};", new object[] { this.GetWebStyleName(),
         ColorTranslator.ToHtml(this.mobjValue.Color),
         this.mobjValue.XOffset, this.mobjValue.YOffset, this.mobjValue.BlurSize, importantDeclarationValue });
 }