<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Yes, that is how it's supposed to be.<br>
If you want to assign the label style, you must set many of the
required properties for a<br>
label style object:<br>
<br>
ar.Label = new TextSymbolType();<br>
ar.Label.BackgroundColor = System.Drawing.Color.FromArgb(0,
System.Drawing.Color.White); //Transparent<br>
ar.Label.ForegroundColor = System.Drawing.Color.Black;<br>
ar.Label.Unit = LengthUnitType.Points;<br>
ar.Label.SizeX = "12";<br>
ar.Label.SizeY = "12";<br>
ar.Label.FontName = "Arial";<br>
<br>
I think those are the required ones, but I have not tested it.<br>
<br>
<pre class="moz-signature" cols="72">Regards, Kenneth Skovhede, GEOGRAF A/S
</pre>
<br>
<br>
<a class="moz-txt-link-abbreviated" href="mailto:ravinder.singh@BIRLASOFT.COM">ravinder.singh@BIRLASOFT.COM</a> skrev:
<blockquote
 cite="mid:176511108BBB7842992F0BF7B56EB6180678B8F8@INNOIDA.BIRLASOFT.COM"
 type="cite">
  <meta http-equiv="Content-Type" content="text/html; ">
  <meta name="Generator" content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]--><o:SmartTagType
 namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="PersonName">
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
  <style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Mangal;
        panose-1:0 0 4 0 0 0 0 0 0 0;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:"Book Antiqua";
        panose-1:2 4 6 2 5 3 5 3 3 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";
        color:black;}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
pre
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";
        color:black;}
span.EmailStyle18
        {mso-style-type:personal;
        font-family:"Book Antiqua";
        color:windowtext;
        font-weight:normal;
        font-style:normal;
        text-decoration:none none;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Book Antiqua";
        color:blue;
        font-weight:normal;
        font-style:normal;
        text-decoration:none none;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
  </style><!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
  </o:SmartTagType>
  <div class="Section1">
  <p class="MsoNormal"><font color="black" face="Book Antiqua" size="2"><span
 style="font-size: 10pt; font-family: &quot;Book Antiqua&quot;;">Hi,<o:p></o:p></span></font></p>
  <p class="MsoNormal"><font color="black" face="Book Antiqua" size="2"><span
 style="font-size: 10pt; font-family: &quot;Book Antiqua&quot;;"><o:p> </o:p></span></font></p>
  <p class="MsoNormal"><font color="black" face="Book Antiqua" size="2"><span
 style="font-size: 10pt; font-family: &quot;Book Antiqua&quot;;">I have tried it
and written
the following code. It works if I check(select) the Display feature
Labels in Label
Style Dialog Box(in maestro) and even don’t set any property, but It
does
not work if I don’t check the Display feature Labels. <o:p></o:p></span></font></p>
  <p class="MsoNormal"><font color="black" face="Book Antiqua" size="2"><span
 style="font-size: 10pt; font-family: &quot;Book Antiqua&quot;;"><o:p> </o:p></span></font></p>
  <p class="MsoNormal"><font color="black" face="Book Antiqua" size="2"><span
 style="font-size: 10pt; font-family: &quot;Book Antiqua&quot;;">Means if there
is text “None”
 set in Label Style  in Area Style then it does not work , otherwise
it works by simply checking the Display feature Labels in Label Style
Dialog
Box.<o:p></o:p></span></font></p>
  <p class="MsoNormal"><font color="black" face="Book Antiqua" size="2"><span
 style="font-size: 10pt; font-family: &quot;Book Antiqua&quot;;"><o:p> </o:p></span></font></p>
  <p class="MsoNormal" style=""><font color="black" face="Book Antiqua"
 size="2"><span style="font-size: 10pt; font-family: &quot;Book Antiqua&quot;;">That’s
why in your example code, this code “</span></font><font
 face="Book Antiqua" size="2"><span
 style="font-size: 10pt; font-family: &quot;Book Antiqua&quot;;">if
(ar.Label != null)” is written.<o:p></o:p></span></font></p>
  <p class="MsoNormal" style=""><font color="black" face="Book Antiqua"
 size="2"><span style="font-size: 10pt; font-family: &quot;Book Antiqua&quot;;"><o:p> </o:p></span></font></p>
  <p class="MsoNormal" style=""><font color="black" face="Book Antiqua"
 size="2"><span style="font-size: 10pt; font-family: &quot;Book Antiqua&quot;;">But
my problem is that I do have Only Area style defined in maestro , but I
have
not defined any property as feature label. So I don’t want to check the
 </span></font><font face="Book Antiqua" size="2"><span
 style="font-size: 10pt; font-family: &quot;Book Antiqua&quot;;">Display
feature Labels checkbox,</span></font><font face="Book Antiqua" size="2"><span
 style="font-size: 10pt; font-family: &quot;Book Antiqua&quot;;"> To Generate the
dynamic
label I tried to write my commented line of code (c#), but does not
work.<o:p></o:p></span></font></p>
  <p class="MsoNormal" style=""><font color="black" face="Book Antiqua"
 size="2"><span style="font-size: 10pt; font-family: &quot;Book Antiqua&quot;;"><o:p> </o:p></span></font></p>
  <p class="MsoNormal" style=""><font color="black" face="Book Antiqua"
 size="2"><span style="font-size: 10pt; font-family: &quot;Book Antiqua&quot;;">Please
If can be done ?<o:p></o:p></span></font></p>
  <p class="MsoNormal"><font color="blue" face="Book Antiqua" size="2"><span
 style="font-size: 10pt; font-family: &quot;Book Antiqua&quot;; color: blue;"><o:p> </o:p></span></font></p>
  <p class="MsoNormal" style=""><font color="black" face="Book Antiqua"
 size="2"><span
 style="font-size: 10pt; font-family: &quot;Book Antiqua&quot;; color: windowtext;"> 
  </span></font><font color="blue" face="Book Antiqua" size="2"><span
 style="font-size: 10pt; font-family: &quot;Book Antiqua&quot;; color: blue;">foreach</span></font><font
 color="black" face="Book Antiqua" size="2"><span
 style="font-size: 10pt; font-family: &quot;Book Antiqua&quot;; color: windowtext;">
(</span></font><font color="teal" face="Book Antiqua" size="2"><span
 style="font-size: 10pt; font-family: &quot;Book Antiqua&quot;; color: teal;">VectorScaleRangeType</span></font><font
 color="black" face="Book Antiqua" size="2"><span
 style="font-size: 10pt; font-family: &quot;Book Antiqua&quot;; color: windowtext;">
vsr </span></font><font color="blue" face="Book Antiqua" size="2"><span
 style="font-size: 10pt; font-family: &quot;Book Antiqua&quot;; color: blue;">in</span></font><font
 color="black" face="Book Antiqua" size="2"><span
 style="font-size: 10pt; font-family: &quot;Book Antiqua&quot;; color: windowtext;">
vectorLayerDefinition1.VectorScaleRange)<o:p></o:p></span></font></p>
  <p class="MsoNormal" style=""><font color="black" face="Book Antiqua"
 size="2"><span
 style="font-size: 10pt; font-family: &quot;Book Antiqua&quot;; color: windowtext;">           
{<o:p></o:p></span></font></p>
  <p class="MsoNormal" style=""><font color="black" face="Book Antiqua"
 size="2"><span
 style="font-size: 10pt; font-family: &quot;Book Antiqua&quot;; color: windowtext;">               
  </span></font><font color="blue" face="Book Antiqua" size="2"><span
 style="font-size: 10pt; font-family: &quot;Book Antiqua&quot;; color: blue;">foreach</span></font><font
 color="black" face="Book Antiqua" size="2"><span
 style="font-size: 10pt; font-family: &quot;Book Antiqua&quot;; color: windowtext;">
(</span></font><font color="blue" face="Book Antiqua" size="2"><span
 style="font-size: 10pt; font-family: &quot;Book Antiqua&quot;; color: blue;">object</span></font><font
 color="black" face="Book Antiqua" size="2"><span
 style="font-size: 10pt; font-family: &quot;Book Antiqua&quot;; color: windowtext;">
o </span></font><font color="blue" face="Book Antiqua" size="2"><span
 style="font-size: 10pt; font-family: &quot;Book Antiqua&quot;; color: blue;">in</span></font><font
 color="black" face="Book Antiqua" size="2"><span
 style="font-size: 10pt; font-family: &quot;Book Antiqua&quot;; color: windowtext;">
vsr.Items)<o:p></o:p></span></font></p>
  <p class="MsoNormal" style=""><font color="black" face="Book Antiqua"
 size="2"><span
 style="font-size: 10pt; font-family: &quot;Book Antiqua&quot;; color: windowtext;">               
{<o:p></o:p></span></font></p>
  <p class="MsoNormal" style=""><font color="black" face="Book Antiqua"
 size="2"><span
 style="font-size: 10pt; font-family: &quot;Book Antiqua&quot;; color: windowtext;">                   
  </span></font><font color="blue" face="Book Antiqua" size="2"><span
 style="font-size: 10pt; font-family: &quot;Book Antiqua&quot;; color: blue;">if</span></font><font
 color="black" face="Book Antiqua" size="2"><span
 style="font-size: 10pt; font-family: &quot;Book Antiqua&quot;; color: windowtext;">
(o </span></font><font color="blue" face="Book Antiqua" size="2"><span
 style="font-size: 10pt; font-family: &quot;Book Antiqua&quot;; color: blue;">is</span></font><font
 color="black" face="Book Antiqua" size="2"><span
 style="font-size: 10pt; font-family: &quot;Book Antiqua&quot;; color: windowtext;">
  </span></font><font color="teal" face="Book Antiqua" size="2"><span
 style="font-size: 10pt; font-family: &quot;Book Antiqua&quot;; color: teal;">AreaTypeStyleType</span></font><font
 color="black" face="Book Antiqua" size="2"><span
 style="font-size: 10pt; font-family: &quot;Book Antiqua&quot;; color: windowtext;">)<o:p></o:p></span></font></p>
  <p class="MsoNormal" style=""><font color="black" face="Book Antiqua"
 size="2"><span
 style="font-size: 10pt; font-family: &quot;Book Antiqua&quot;; color: windowtext;">                   
{<o:p></o:p></span></font></p>
  <p class="MsoNormal" style=""><font color="black" face="Book Antiqua"
 size="2"><span
 style="font-size: 10pt; font-family: &quot;Book Antiqua&quot;; color: windowtext;">                       
  </span></font><font color="teal" face="Book Antiqua" size="2"><span
 style="font-size: 10pt; font-family: &quot;Book Antiqua&quot;; color: teal;">AreaTypeStyleType</span></font><font
 color="black" face="Book Antiqua" size="2"><span
 style="font-size: 10pt; font-family: &quot;Book Antiqua&quot;; color: windowtext;">
ast = o </span></font><font color="blue" face="Book Antiqua" size="2"><span
 style="font-size: 10pt; font-family: &quot;Book Antiqua&quot;; color: blue;">as</span></font><font
 color="black" face="Book Antiqua" size="2"><span
 style="font-size: 10pt; font-family: &quot;Book Antiqua&quot;; color: windowtext;">
  </span></font><font color="teal" face="Book Antiqua" size="2"><span
 style="font-size: 10pt; font-family: &quot;Book Antiqua&quot;; color: teal;">AreaTypeStyleType</span></font><font
 color="black" face="Book Antiqua" size="2"><span
 style="font-size: 10pt; font-family: &quot;Book Antiqua&quot;; color: windowtext;">;<o:p></o:p></span></font></p>
  <p class="MsoNormal" style=""><font color="black" face="Book Antiqua"
 size="2"><span
 style="font-size: 10pt; font-family: &quot;Book Antiqua&quot;; color: windowtext;">                       
  </span></font><font color="blue" face="Book Antiqua" size="2"><span
 style="font-size: 10pt; font-family: &quot;Book Antiqua&quot;; color: blue;">if</span></font><font
 color="black" face="Book Antiqua" size="2"><span
 style="font-size: 10pt; font-family: &quot;Book Antiqua&quot;; color: windowtext;">
(ast.AreaRule != </span></font><font color="blue" face="Book Antiqua"
 size="2"><span
 style="font-size: 10pt; font-family: &quot;Book Antiqua&quot;; color: blue;">null</span></font><font
 color="black" face="Book Antiqua" size="2"><span
 style="font-size: 10pt; font-family: &quot;Book Antiqua&quot;; color: windowtext;">)<o:p></o:p></span></font></p>
  <p class="MsoNormal" style=""><font color="black" face="Book Antiqua"
 size="2"><span
 style="font-size: 10pt; font-family: &quot;Book Antiqua&quot;; color: windowtext;">                       
{<o:p></o:p></span></font></p>
  <p class="MsoNormal" style=""><font color="black" face="Book Antiqua"
 size="2"><span
 style="font-size: 10pt; font-family: &quot;Book Antiqua&quot;; color: windowtext;">                           
  </span></font><font color="blue" face="Book Antiqua" size="2"><span
 style="font-size: 10pt; font-family: &quot;Book Antiqua&quot;; color: blue;">foreach</span></font><font
 color="black" face="Book Antiqua" size="2"><span
 style="font-size: 10pt; font-family: &quot;Book Antiqua&quot;; color: windowtext;">
(</span></font><font color="teal" face="Book Antiqua" size="2"><span
 style="font-size: 10pt; font-family: &quot;Book Antiqua&quot;; color: teal;">AreaRuleType</span></font><font
 color="black" face="Book Antiqua" size="2"><span
 style="font-size: 10pt; font-family: &quot;Book Antiqua&quot;; color: windowtext;">
ar </span></font><font color="blue" face="Book Antiqua" size="2"><span
 style="font-size: 10pt; font-family: &quot;Book Antiqua&quot;; color: blue;">in</span></font><font
 color="black" face="Book Antiqua" size="2"><span
 style="font-size: 10pt; font-family: &quot;Book Antiqua&quot;; color: windowtext;">
ast.AreaRule)<o:p></o:p></span></font></p>
  <p class="MsoNormal" style=""><font color="black" face="Book Antiqua"
 size="2"><span
 style="font-size: 10pt; font-family: &quot;Book Antiqua&quot;; color: windowtext;">                           
{<o:p></o:p></span></font></p>
  <p class="MsoNormal" style=""><font color="black" face="Book Antiqua"
 size="2"><span
 style="font-size: 10pt; font-family: &quot;Book Antiqua&quot;; color: windowtext;">               
                     
  </span></font><font color="green" face="Courier New" size="2"><span
 style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: green;">//Code
to Create
the label at run time<o:p></o:p></span></font></p>
  <p class="MsoNormal" style="margin-left: 1in;"><font color="green"
 face="Courier New" size="2"><span
 style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: green;"> 
 //====================================</span></font><font color="black"
 face="Book Antiqua" size="2"><span
 style="font-size: 10pt; font-family: &quot;Book Antiqua&quot;; color: windowtext;"><o:p></o:p></span></font></p>
  <p class="MsoNormal" style=""><font color="black" face="Book Antiqua"
 size="2"><span
 style="font-size: 10pt; font-family: &quot;Book Antiqua&quot;; color: windowtext;">                               
  </span></font><font color="green" face="Book Antiqua" size="2"><span
 style="font-size: 10pt; font-family: &quot;Book Antiqua&quot;; color: green;">//TextSymbolType
txtSymb = new TextSymbolType();<o:p></o:p></span></font></p>
  <p class="MsoNormal" style=""><font color="black" face="Book Antiqua"
 size="2"><span
 style="font-size: 10pt; font-family: &quot;Book Antiqua&quot;; color: windowtext;">                               
  </span></font><font color="green" face="Book Antiqua" size="2"><span
 style="font-size: 10pt; font-family: &quot;Book Antiqua&quot;; color: green;">//txtSymb.Text
= "MY_PROPERTY_NAME";<o:p></o:p></span></font></p>
  <p class="MsoNormal" style=""><font color="black" face="Book Antiqua"
 size="2"><span
 style="font-size: 10pt; font-family: &quot;Book Antiqua&quot;; color: windowtext;">                              
 </span></font><font color="green" face="Book Antiqua" size="2"><span
 style="font-size: 10pt; font-family: &quot;Book Antiqua&quot;; color: green;">//ar.Label
=
txtSymb;        <o:p></o:p></span></font></p>
  <p class="MsoNormal" style="margin-left: 1in;"><font color="green"
 face="Courier New" size="2"><span
 style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: green;"> 
//====================================</span></font><font color="green"
 face="Book Antiqua" size="2"><span
 style="font-size: 10pt; font-family: &quot;Book Antiqua&quot;; color: green;">                
      <o:p></o:p></span></font></p>
  <p class="MsoNormal" style=""><font color="black" face="Book Antiqua"
 size="2"><span
 style="font-size: 10pt; font-family: &quot;Book Antiqua&quot;; color: windowtext;">                               
  </span></font><font color="blue" face="Book Antiqua" size="2"><span
 style="font-size: 10pt; font-family: &quot;Book Antiqua&quot;; color: blue;">if</span></font><font
 color="black" face="Book Antiqua" size="2"><span
 style="font-size: 10pt; font-family: &quot;Book Antiqua&quot;; color: windowtext;">
(ar.Label != </span></font><font color="blue" face="Book Antiqua"
 size="2"><span
 style="font-size: 10pt; font-family: &quot;Book Antiqua&quot;; color: blue;">null</span></font><font
 color="black" face="Book Antiqua" size="2"><span
 style="font-size: 10pt; font-family: &quot;Book Antiqua&quot;; color: windowtext;">)<o:p></o:p></span></font></p>
  <p class="MsoNormal" style=""><font color="black" face="Book Antiqua"
 size="2"><span
 style="font-size: 10pt; font-family: &quot;Book Antiqua&quot;; color: windowtext;">                               
{<o:p></o:p></span></font></p>
  <p class="MsoNormal" style=""><font color="black" face="Book Antiqua"
 size="2"><span
 style="font-size: 10pt; font-family: &quot;Book Antiqua&quot;; color: windowtext;">                                   
ar.Label.Text = </span></font><font color="maroon" face="Book Antiqua"
 size="2"><span
 style="font-size: 10pt; font-family: &quot;Book Antiqua&quot;; color: maroon;">"</span></font><font
 color="green" face="Book Antiqua" size="2"><span
 style="font-size: 10pt; font-family: &quot;Book Antiqua&quot;; color: green;">MY_PROPERTY_NAME</span></font><font
 color="maroon" face="Book Antiqua" size="2"><span
 style="font-size: 10pt; font-family: &quot;Book Antiqua&quot;; color: maroon;"> "</span></font><font
 color="black" face="Book Antiqua" size="2"><span
 style="font-size: 10pt; font-family: &quot;Book Antiqua&quot;; color: windowtext;">;<o:p></o:p></span></font></p>
  <p class="MsoNormal" style=""><font color="black" face="Book Antiqua"
 size="2"><span
 style="font-size: 10pt; font-family: &quot;Book Antiqua&quot;; color: windowtext;">                               
}<o:p></o:p></span></font></p>
  <p class="MsoNormal" style=""><font color="black" face="Book Antiqua"
 size="2"><span
 style="font-size: 10pt; font-family: &quot;Book Antiqua&quot;; color: windowtext;">                           
}<o:p></o:p></span></font></p>
  <p class="MsoNormal" style=""><font color="black" face="Book Antiqua"
 size="2"><span
 style="font-size: 10pt; font-family: &quot;Book Antiqua&quot;; color: windowtext;">                       
}<o:p></o:p></span></font></p>
  <p class="MsoNormal" style=""><font color="black" face="Book Antiqua"
 size="2"><span
 style="font-size: 10pt; font-family: &quot;Book Antiqua&quot;; color: windowtext;">                   
}<o:p></o:p></span></font></p>
  <p class="MsoNormal" style=""><font color="black" face="Book Antiqua"
 size="2"><span
 style="font-size: 10pt; font-family: &quot;Book Antiqua&quot;; color: windowtext;">               
}<o:p></o:p></span></font></p>
  <p class="MsoNormal"><font color="black" face="Book Antiqua" size="2"><span
 style="font-size: 10pt; font-family: &quot;Book Antiqua&quot;; color: windowtext;">           
}                       
  </span></font><font color="blue" face="Book Antiqua" size="2"><span
 style="font-size: 10pt; font-family: &quot;Book Antiqua&quot;; color: blue;"><o:p></o:p></span></font></p>
  <p class="MsoNormal"><font color="blue" face="Book Antiqua" size="2"><span
 style="font-size: 10pt; font-family: &quot;Book Antiqua&quot;; color: blue;"><o:p> </o:p></span></font></p>
  <div>
  <p class="MsoNormal"><b><font color="gray" face="Book Antiqua"
 size="2"><span
 style="font-size: 10pt; font-family: &quot;Book Antiqua&quot;; color: gray; font-weight: bold;">Thanks
&amp; Regards,<o:p></o:p></span></font></b></p>
  <p class="MsoNormal"><font color="gray" face="Times New Roman"
 size="2"><span style="font-size: 11pt; color: gray;">Ravinder</span></font><font
 color="black"><span style="color: windowtext;"><o:p></o:p></span></font></p>
  <div class="MsoNormal" style="text-align: center;" align="center"><font
 color="black" face="Times New Roman" size="3"><span
 style="font-size: 12pt; color: windowtext;">
  <hr tabindex="-1" align="center" size="2" width="100%"></span></font></div>
  </div>
  <div>
  <p class="MsoNormal"><b><font color="black" face="Tahoma" size="2"><span
 style="font-size: 10pt; font-family: Tahoma; color: windowtext; font-weight: bold;">From:</span></font></b><font
 color="black" face="Tahoma" size="2"><span
 style="font-size: 10pt; font-family: Tahoma; color: windowtext;">
<a class="moz-txt-link-abbreviated" href="mailto:mapguide-users-bounces@lists.osgeo.org">mapguide-users-bounces@lists.osgeo.org</a>
[<a class="moz-txt-link-freetext" href="mailto:mapguide-users-bounces@lists.osgeo.org">mailto:mapguide-users-bounces@lists.osgeo.org</a>] <b><span
 style="font-weight: bold;">On Behalf Of </span></b>Kenneth Skovhede,
GEOGRAF A/S<br>
  <b><span style="font-weight: bold;">Sent:</span></b> Thursday, March
05, 2009
1:12 PM<br>
  <b><span style="font-weight: bold;">To:</span></b> <st1:PersonName
 w:st="on">MapGuide Users Mail List</st1:PersonName><br>
  <b><span style="font-weight: bold;">Subject:</span></b> Re:
[mapguide-users]
Regarding - Set Feature Label at Run Time</span></font><font
 color="black"><span style="color: windowtext;"><o:p></o:p></span></font></p>
  </div>
  <p class="MsoNormal"><font color="black" face="Times New Roman"
 size="3"><span style="font-size: 12pt;"><o:p> </o:p></span></font></p>
  <p class="MsoNormal"><font color="black" face="Times New Roman"
 size="3"><span style="font-size: 12pt;">That is a bit difficult for
two reasons.<br>
1) The MapGuide style model is fairly large, so there are many subitems
to
examine<br>
2) The styles for Point, Line and Area don't share the same properties,
so they
must be handled individually.<br>
  <br>
I have put up an example on how to do this here:<br>
  <a moz-do-not-send="true"
 href="http://trac.osgeo.org/mapguide/wiki/maestro/MaestroAPI/samples/IterateLayerRules">http://trac.osgeo.org/mapguide/wiki/maestro/MaestroAPI/samples/IterateLayerRules</a><br>
  <br>
  <br>
  <o:p></o:p></span></font></p>
  <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">Regards, Kenneth Skovhede, GEOGRAF A/S<o:p></o:p></span></font></pre>
  <p class="MsoNormal"><font color="black" face="Times New Roman"
 size="3"><span style="font-size: 12pt;"><br>
  <br>
  <a moz-do-not-send="true" href="mailto:ravinder.singh@BIRLASOFT.COM">ravinder.singh@BIRLASOFT.COM</a>
skrev: <o:p></o:p></span></font></p>
  <p class="MsoNormal"><font color="black" face="Book Antiqua" size="2"><span
 style="font-size: 10pt; font-family: &quot;Book Antiqua&quot;;"><!--[if gte mso 9]><xml>
 <u1:shapedefaults u2:ext="edit" spidmax="1026"/>
</xml><![endif]--><!--[if gte mso 9]><xml>
 <u3:shapelayout u4:ext="edit">
  <u3:idmap u4:ext="edit" data="1"/>
 </u3:shapelayout>
</xml><![endif]-->Hi
All,<u5:p></u5:p></span></font><o:p></o:p></p>
  <p class="MsoNormal"><font color="black" face="Book Antiqua" size="2"><span
 style="font-size: 10pt; font-family: &quot;Book Antiqua&quot;;"><u5:p> </u5:p></span></font><o:p></o:p></p>
  <p class="MsoNormal"><font color="black" face="Book Antiqua" size="2"><span
 style="font-size: 10pt; font-family: &quot;Book Antiqua&quot;;">I have to set a
property as
Feature Label for a layer at run time. I got some hints and tried with
VectorLayerDefinitionType and TextSymbolType.But not able to do so as I
don’t know the exact procedure.<u5:p></u5:p></span></font><o:p></o:p></p>
  <p class="MsoNormal"><font color="black" face="Book Antiqua" size="2"><span
 style="font-size: 10pt; font-family: &quot;Book Antiqua&quot;;"><u5:p> </u5:p></span></font><o:p></o:p></p>
  <p class="MsoNormal"><font color="black" face="Book Antiqua" size="2"><span
 style="font-size: 10pt; font-family: &quot;Book Antiqua&quot;;">I am using
maestro api for
creating run time map.<u5:p></u5:p></span></font><o:p></o:p></p>
  <p class="MsoNormal"><font color="black" face="Book Antiqua" size="2"><span
 style="font-size: 10pt; font-family: &quot;Book Antiqua&quot;;"><u5:p> </u5:p></span></font><o:p></o:p></p>
  <p class="MsoNormal"><font color="black" face="Book Antiqua" size="2"><span
 style="font-size: 10pt; font-family: &quot;Book Antiqua&quot;;">Please assist…<u5:p></u5:p></span></font><o:p></o:p></p>
  <p class="MsoNormal"><font color="black" face="Book Antiqua" size="2"><span
 style="font-size: 10pt; font-family: &quot;Book Antiqua&quot;;"><u5:p> </u5:p></span></font><o:p></o:p></p>
  <p class="MsoNormal"><font color="black" face="Book Antiqua" size="2"><span
 style="font-size: 10pt; font-family: &quot;Book Antiqua&quot;;">I am using c#,
asp.net.<u5:p></u5:p></span></font><o:p></o:p></p>
  <p class="MsoNormal"><font color="black" face="Book Antiqua" size="2"><span
 style="font-size: 10pt; font-family: &quot;Book Antiqua&quot;;"><u5:p> </u5:p></span></font><o:p></o:p></p>
  <p class="MsoNormal"><font color="black" face="Book Antiqua" size="2"><span
 style="font-size: 10pt; font-family: &quot;Book Antiqua&quot;;"><u5:p> </u5:p></span></font><o:p></o:p></p>
  <p class="MsoNormal"><b><font color="gray" face="Book Antiqua"
 size="2"><span
 style="font-size: 10pt; font-family: &quot;Book Antiqua&quot;; color: gray; font-weight: bold;">Thanks
&amp; Regards,<u5:p></u5:p></span></font></b><o:p></o:p></p>
  <p class="MsoNormal"><font color="gray" face="Times New Roman"
 size="2"><span style="font-size: 11pt; color: gray;">Ravinder<u5:p></u5:p></span></font><o:p></o:p></p>
  <p class="MsoNormal"><font color="black" face="Times New Roman"
 size="3"><span style="font-size: 12pt;"><u5:p> </u5:p><o:p></o:p></span></font></p>
  <table class="MsoNormalTable" border="0" cellpadding="0">
    <tbody>
      <tr>
        <td
 style="padding: 0.75pt; background: white none repeat scroll 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"
 bgcolor="white">
        <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">*********************************************************************************************************************************************************************%CRLF%"This message and any attachments are solely for the intended recipient and may contain Birlasoft confidential or privileged information. If you are not the intended recipient,any disclosure,copying, use, or distribution of the information included in this message and any attachments is %CRLF%prohibited. If you have received this communication in error, please notify us by reply e-mail at (<a
 moz-do-not-send="true" href="mailto:administrator@birlasoft.com">administrator@birlasoft.com</a>) and permanently delete this message and any attachments. Thank you."%CRLF%*********************************************************************************************************************************************************************%CRLF%<o:p></o:p></span></font></pre>
        </td>
      </tr>
    </tbody>
  </table>
  <pre wrap=""><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;"><o:p> </o:p></span></font></pre>
  <pre style="text-align: center;"><font color="black"
 face="Courier New" size="2"><span style="font-size: 10pt;">

<hr align="center" size="4" width="90%">

</span></font></pre>
  <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;"><o:p> </o:p></span></font></pre>
  <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">_______________________________________________<o:p></o:p></span></font></pre>
  <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">mapguide-users mailing list<o:p></o:p></span></font></pre>
  <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;"><a moz-do-not-send="true"
 href="mailto:mapguide-users@lists.osgeo.org">mapguide-users@lists.osgeo.org</a><o:p></o:p></span></font></pre>
  <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;"><a moz-do-not-send="true"
 href="http://lists.osgeo.org/mailman/listinfo/mapguide-users">http://lists.osgeo.org/mailman/listinfo/mapguide-users</a><o:p></o:p></span></font></pre>
  <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">  <o:p></o:p></span></font></pre>
  </div>
  <table>
    <tbody>
      <tr>
        <td bgcolor="#ffffff"><font color="#000000">
        <pre>*********************************************************************************************************************************************************************%CRLF%"This message and any attachments are solely for the intended recipient and may contain Birlasoft confidential or privileged information. If you are not the intended recipient,any disclosure,copying, use, or distribution of the information included in this message and any attachments is %CRLF%prohibited. If you have received this communication in error, please notify us by reply e-mail at (<a class="moz-txt-link-abbreviated" href="mailto:administrator@birlasoft.com">administrator@birlasoft.com</a>) and permanently delete this message and any attachments. Thank you."%CRLF%*********************************************************************************************************************************************************************%CRLF%</pre>
        </font></td>
      </tr>
    </tbody>
  </table>
  <pre wrap="">
<hr size="4" width="90%">
_______________________________________________
mapguide-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:mapguide-users@lists.osgeo.org">mapguide-users@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/mapguide-users">http://lists.osgeo.org/mailman/listinfo/mapguide-users</a>
  </pre>
</blockquote>
</body>
</html>