سلام.
می تونید بدین شکل عمل کنید:
string xml = "<Controls><label1><Font style=\"Regular\" size=\"8.25\">Microsoft Sans Serif</Font><backcolor>-1250856</backcolor></label1><textBox1><Font style=\"Regular\" size=\"8.25\">Microsoft Sans Serif</Font><backcolor>-16777216</backcolor></textBox1></Controls>";
var elements = XElement.Parse(xml).XPathSelectElements("//*/Font").Select(fnt => new
{
Style = fnt.Attribute("style").Value,
Size = fnt.Attribute("size").Value,
Name = fnt.Value
});
foreach (var element in elements)
{
string name = element.Name;
string size = element.Size;
string style = element.Style;
}
موفق باشید.