[IL CODE]

.method private hidebysig instance void DisplayTextItem(class [System.Design]System.ComponentModel.Design.DesignerActionTextItem actionItem) cil managed
{
// Code size 111 (0x6f)
.maxstack 6
.locals init (class [System.Windows.Forms]System.Windows.Forms.Label V_0)
IL_0000: newobj instance void [System.Windows.Forms]System.Windows.Forms.Label::.ctor()
IL_0005: stloc.0
IL_0006: ldloc.0
IL_0007: ldarg.1
IL_0008: callvirt instance string [System.Design]System.ComponentModel.Design.DesignerActionItem::get_DisplayName()
IL_000d: callvirt instance void [System.Windows.Forms]System.Windows.Forms.Control::set_Text(string)
IL_0012: ldloc.0
IL_0013: ldc.i4.4
IL_0014: callvirt instance void [System.Windows.Forms]System.Windows.Forms.Control::set_Anchor(valuetype [System.Windows.Forms]System.Windows.Forms.AnchorStyles)
IL_0019: ldloc.0
IL_001a: ldc.i4.5
IL_001b: callvirt instance void [System.Windows.Forms]System.Windows.Forms.Control::set_Dock(valuetype [System.Windows.Forms]System.Windows.Forms.DockStyle)
IL_0020: ldloc.0
IL_0021: ldarg.0
IL_0022: ldstr "VsColorPanelMiscText"
IL_0027: ldsfld valuetype [System.Drawing]System.Drawing.Color ILOG.Diagrammer.Design.SmartTagPopUp::DEFAULT_COLOR_MISC_TEXT
IL_002c: call instance valuetype [System.Drawing]System.Drawing.Color ILOG.Diagrammer.Design.SmartTagPopUp::GetColor(string,
valuetype [System.Drawing]System.Drawing.Color)
IL_0031: callvirt instance void [System.Windows.Forms]System.Windows.Forms.Control::set_ForeColor(valuetype [System.Drawing]System.Drawing.Color)
IL_0036: ldloc.0
IL_0037: ldarg.0
IL_0038: ldstr "DialogFont"
IL_003d: ldsfld class [System.Drawing]System.Drawing.Font ILOG.Diagrammer.Design.SmartTagPopUp::DEFAULT_FONT_NAME
IL_0042: call instance class [System.Drawing]System.Drawing.Font ILOG.Diagrammer.Design.SmartTagPopUp::GetFont(string,
class [System.Drawing]System.Drawing.Font)
IL_0047: callvirt instance void [System.Windows.Forms]System.Windows.Forms.Control::set_Font(class [System.Drawing]System.Drawing.Font)
IL_004c: ldloc.0
IL_004d: ldloc.0
IL_004e: callvirt instance int32 [System.Windows.Forms]System.Windows.Forms.Label::get_PreferredHeight()
IL_0053: callvirt instance void [System.Windows.Forms]System.Windows.Forms.Control::set_Height(int32)
IL_0058: ldloc.0
IL_0059: ldc.i4.2
IL_005a: ldc.i4.0
IL_005b: ldc.i4.0
IL_005c: ldc.i4.4
IL_005d: newobj instance void [System.Windows.Forms]System.Windows.Forms.Padding::.ctor(int32,
int32,
int32,
int32)
IL_0062: callvirt instance void [System.Windows.Forms]System.Windows.Forms.Control::set_Margin(valuetype [System.Windows.Forms]System.Windows.Forms.Padding)
IL_0067: ldarg.0
IL_0068: ldloc.0
IL_0069: call instance void ILOG.Diagrammer.Design.SmartTagPopUp::addComponent(class [System.Windows.Forms]System.Windows.Forms.Control)
IL_006e: ret
} // end of method SmartTagPopUp::DisplayTextItem



[C# code generated]
private void DisplayTextItem(DesignerActionTextItem actionItem)
{
Label label;
label = new Label {
Text = actionItem.DisplayName,
Anchor = AnchorStyles.Left,
Dock = DockStyle.Fill,
ForeColor = this.GetColor("VsColorPanelMiscText", DEFAULT_COLOR_MISC_TEXT),
Font = this.GetFont("DialogFont", DEFAULT_FONT_NAME),
Height = label.PreferredHeight,
Margin = new Padding(2, 0, 0, 4)
};
this.addComponent(label);
}
jackjoy
0

Comments

1 comment

  • Clive Tong
    Thanks for reporting that.

    I've logged it as RP-739.
    Clive Tong
    0

Add comment

Please sign in to leave a comment.