Пример #1
0
 public BoxShadowValue(BoxShadow objValue)
 {
     this.mobjValue = objValue;
 }
Пример #2
0
 private object ConvertToInstanceDescriptor(ITypeDescriptorContext objContext, BoxShadow objPadding)
 {
     Type[] typeArray;
     typeArray = new Type[] { typeof(Color), typeof(int), typeof(int), typeof(int) };
     return new InstanceDescriptor(typeof(BoxShadow).GetConstructor(typeArray), new object[] { objPadding.Color, objPadding.XOffset, objPadding.YOffset, objPadding.BlurSize });
 }
Пример #3
0
 //internal void Scale(float fltX, float fltY)
 //{
 //    this.mintXOffset = (int) (this.mintXOffset * fltY);
 //    this.mintColor = (int) (this.mintColor * fltX);
 //    this.mintYOffset = (int) (this.mintYOffset * fltX);
 //    this.mintBlurSize = (int) (this.mintBlurSize * fltY);
 //}
 static BoxShadow()
 {
     Empty = new BoxShadow(Color.Empty,0,0,0);
 }