public CT_OuterShadowEffect() { this.prstClrField = new CT_PresetColor(); this.schemeClrField = new CT_SchemeColor(); this.sysClrField = new CT_SystemColor(); this.hslClrField = new CT_HslColor(); this.srgbClrField = new CT_SRgbColor(); this.scrgbClrField = new CT_ScRgbColor(); this.blurRadField = ((long)(0)); this.distField = ((long)(0)); this.dirField = 0; this.sxField = 100000; this.syField = 100000; this.kxField = 0; this.kyField = 0; this.algnField = ST_RectAlignment.b; this.rotWithShapeField = true; }
public CT_AlphaInverseEffect() { this.prstClrField = new CT_PresetColor(); this.schemeClrField = new CT_SchemeColor(); this.sysClrField = new CT_SystemColor(); this.hslClrField = new CT_HslColor(); this.srgbClrField = new CT_SRgbColor(); this.scrgbClrField = new CT_ScRgbColor(); }
public CT_PresetShadowEffect() { this.prstClrField = new CT_PresetColor(); this.schemeClrField = new CT_SchemeColor(); this.sysClrField = new CT_SystemColor(); this.hslClrField = new CT_HslColor(); this.srgbClrField = new CT_SRgbColor(); this.scrgbClrField = new CT_ScRgbColor(); this.distField = ((long)(0)); this.dirField = 0; }
public CT_SRgbColor AddNewSrgbClr() { this.srgbClrField = new CT_SRgbColor(); return srgbClrField; }
public static CT_SRgbColor Parse(XmlNode node, XmlNamespaceManager namespaceManager) { if (node == null) return null; CT_SRgbColor ctObj = new CT_SRgbColor(); ctObj.val = XmlHelper.ReadBytes(node.Attributes["val"]); foreach (XmlNode childNode in node.ChildNodes) { if (childNode.LocalName == "alpha") ctObj.ItemsElementName.Add(EG_ColorTransform.alpha); else if (childNode.LocalName == "alphaMod") ctObj.ItemsElementName.Add(EG_ColorTransform.alphaMod); else if (childNode.LocalName == "alphaOff") ctObj.ItemsElementName.Add(EG_ColorTransform.alphaOff); else if (childNode.LocalName == "blue") ctObj.ItemsElementName.Add(EG_ColorTransform.blue); else if (childNode.LocalName == "blueMod") ctObj.ItemsElementName.Add(EG_ColorTransform.blueMod); else if (childNode.LocalName == "blueOff") ctObj.ItemsElementName.Add(EG_ColorTransform.blueOff); else if (childNode.LocalName == "comp") ctObj.ItemsElementName.Add(EG_ColorTransform.comp); else if (childNode.LocalName == "gamma") ctObj.ItemsElementName.Add(EG_ColorTransform.gamma); else if (childNode.LocalName == "gray") ctObj.ItemsElementName.Add(EG_ColorTransform.gray); else if (childNode.LocalName == "green") ctObj.ItemsElementName.Add(EG_ColorTransform.green); else if (childNode.LocalName == "greenMod") ctObj.ItemsElementName.Add(EG_ColorTransform.greenMod); else if (childNode.LocalName == "greenOff") ctObj.ItemsElementName.Add(EG_ColorTransform.greenOff); else if (childNode.LocalName == "hue") ctObj.ItemsElementName.Add(EG_ColorTransform.hue); else if (childNode.LocalName == "hueMod") ctObj.ItemsElementName.Add(EG_ColorTransform.hueMod); else if (childNode.LocalName == "hueOff") ctObj.ItemsElementName.Add(EG_ColorTransform.hueOff); else if (childNode.LocalName == "inv") ctObj.ItemsElementName.Add(EG_ColorTransform.inv); else if (childNode.LocalName == "invGamma") ctObj.ItemsElementName.Add(EG_ColorTransform.invGamma); else if (childNode.LocalName == "lum") ctObj.ItemsElementName.Add(EG_ColorTransform.lum); else if (childNode.LocalName == "lumMod") ctObj.ItemsElementName.Add(EG_ColorTransform.lumMod); else if (childNode.LocalName == "lumOff") ctObj.ItemsElementName.Add(EG_ColorTransform.lumOff); else if (childNode.LocalName == "red") ctObj.ItemsElementName.Add(EG_ColorTransform.red); else if (childNode.LocalName == "redMod") ctObj.ItemsElementName.Add(EG_ColorTransform.redMod); else if (childNode.LocalName == "redOff") ctObj.ItemsElementName.Add(EG_ColorTransform.redOff); else if (childNode.LocalName == "sat") ctObj.ItemsElementName.Add(EG_ColorTransform.sat); else if (childNode.LocalName == "satMod") ctObj.ItemsElementName.Add(EG_ColorTransform.satMod); else if (childNode.LocalName == "satOff") ctObj.ItemsElementName.Add(EG_ColorTransform.satOff); else if (childNode.LocalName == "shade") ctObj.ItemsElementName.Add(EG_ColorTransform.shade); else if (childNode.LocalName == "tint") ctObj.ItemsElementName.Add(EG_ColorTransform.tint); if (childNode.Attributes["val"] != null) ctObj.itemsValueField.Add(childNode.Attributes["val"].Value); else ctObj.itemsValueField.Add(null); } return ctObj; }
public CT_GradientStop() { this.prstClrField = new CT_PresetColor(); this.schemeClrField = new CT_SchemeColor(); this.sysClrField = new CT_SystemColor(); this.hslClrField = new CT_HslColor(); this.srgbClrField = new CT_SRgbColor(); this.scrgbClrField = new CT_ScRgbColor(); }
public CT_CustomColor() { this.prstClrField = new CT_PresetColor(); this.schemeClrField = new CT_SchemeColor(); this.sysClrField = new CT_SystemColor(); this.hslClrField = new CT_HslColor(); this.srgbClrField = new CT_SRgbColor(); this.scrgbClrField = new CT_ScRgbColor(); this.nameField = ""; }
/** * The color applied to the lines of this shape. */ public void SetLineStyleColor(int red, int green, int blue) { CT_ShapeProperties props = GetShapeProperties(); CT_LineProperties ln = props.IsSetLn() ? props.ln : props.AddNewLn(); CT_SolidColorFillProperties fill = ln.IsSetSolidFill() ? ln.solidFill : ln.AddNewSolidFill(); CT_SRgbColor rgb = new CT_SRgbColor(); rgb.val = (new byte[] { (byte)red, (byte)green, (byte)blue }); fill.srgbClr = (rgb); }
/** * Sets the color used to fill this shape using the solid fill pattern. */ public void SetFillColor(int red, int green, int blue) { CT_ShapeProperties props = GetShapeProperties(); CT_SolidColorFillProperties fill = props.IsSetSolidFill() ? props.solidFill : props.AddNewSolidFill(); CT_SRgbColor rgb = new CT_SRgbColor(); rgb.val = (new byte[] { (byte)red, (byte)green, (byte)blue }); fill.srgbClr = (rgb); }
public CT_TableStyleTextStyle() { this.extLstField = new CT_OfficeArtExtensionList(); this.prstClrField = new CT_PresetColor(); this.schemeClrField = new CT_SchemeColor(); this.sysClrField = new CT_SystemColor(); this.hslClrField = new CT_HslColor(); this.srgbClrField = new CT_SRgbColor(); this.scrgbClrField = new CT_ScRgbColor(); this.fontRefField = new CT_FontReference(); this.fontField = new CT_FontCollection(); this.bField = ST_OnOffStyleType.def; this.iField = ST_OnOffStyleType.def; }