[C#] Problème pour l'appel d'objet...
Bonjour,
J'ai créé une classe PlotForm:
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14
| public class PlotForm : System.Windows.Forms.Form
{
/// <summary>
/// Variable nécessaire au concepteur.
/// </summary>
///
//private FormSession parent;
private System.ComponentModel.Container components = null;
private System.Windows.Forms.PictureBox ChartPlotZone;
private System.Windows.Forms.PictureBox ChartCurvesLegend;
private System.Windows.Forms.Label ChartAxXLegend;
private System.Windows.Forms.Label ChartTitle;
private System.Windows.Forms.Panel ChartAxYLegend; |
et je voudrais passer en arguement mon Panel ChartAxYLegend puisque je dois l'utiliser pour l'affichage d'un texte à l'intérieur de celui-ci :
Code:
1 2
| / Dessin du graphic sur le panel ChartAxYLegend
"Le type?".ChartAxYLegend.CreateGraphics().FillPath(new SolidBrush(Color.Black),gp); |
Seulement je n'arrive pas à trouver le type exact que je dois déclarer dans l'entete de ma fonction:
Code:
public void AfficheTexteOrienté(GraphicsPath gp, "Le type" ChartAxYLegend, string str, FontFamily ffamily, int fstyle, int size, Point point, StringFormat sformat, int angle)
Est ce possible ou je mis prends vraiment trop mal??