Skip to main content

Posts

Showing posts from June, 2013

DevExpress C# Chart Tutorial

Hello , this blog post about Charting in DevExpress , I faced many problems I visited hundreds of pages to solve this problems , actually it was the first time I use DevExpress Charts, Work is not like school or university , in school if you don't know thing you can learn it any time you want , in work you have to do today task yesterday, I like to share my knowledge and skills with you , I hope this Post help you . // clear series on chart  chart.Series.Clear(); // clear Titles of chart chart.Titles.Clear(); // legend alignment  chart.Legend.AlignmentHorizontal = LegendAlignmentHorizontal.Center; chart.Legend.AlignmentVertical = LegendAlignmentVertical.Bottom; chart.Legend.Direction = LegendDirection.LeftToRight; // creating series // series view Type example Line DevExpress.XtraCharts.Series series = new DevExpress.XtraCharts.Series("series name ", ViewType.Line); // add title  DevExpress.XtraCharts.ChartTitle chtTitle = new DevExpress.XtraCharts.Cha

C# Witting XML Document

Hi I'm Writing application , the application require a knowledge and skills in C# dotNet framework , I'll write my experience about C# XML .   XmlDocument xmlDoc = new XmlDocument(); // create xml document Object  XmlElement xmlRoot = xmlDoc.CreateElement("RootTag"); // create root tag  XmlElement Attributes = xmlDoc.CreateElement("Attributes"); // I create another tag called it  Attributes of course you can change it.   XmlElement element; // create reference for XML element     element = xmlDoc.CreateElement("child");   element.InnerText = "Hello World from Child";   Attributes.AppendChild(element); // append XML Element to parent node              XmlElement parameters =   xmlDoc.CreateElement("parameters");   for (int i = 0; i < 10; i++) { XmlElement node = xmlDoc.CreateElement(" parameter ");   node.SetAttribute("id", "value"); // adding attribute    node.SetAttribute(&quo