IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

C# Discussion :

add-in PowerPoint comment faire un Events?


Sujet :

C#

  1. #1
    Membre du Club
    Profil pro
    Inscrit en
    Février 2010
    Messages
    69
    Détails du profil
    Informations personnelles :
    Localisation : France, Paris (Île de France)

    Informations forums :
    Inscription : Février 2010
    Messages : 69
    Points : 63
    Points
    63
    Par défaut add-in PowerPoint comment faire un Events?
    Bonjour Developpeur, Developpeuze,

    j'ai rencontre un petit problème que je n'arrive pas à résoudre. du coup c'est un peu en train de devenir un gros problèmes.

    je suis sous visual Studio et je suis en train de travailler sur la création d'un add-in pour powerPoint. Je dois creer des bullets. ce que j'arrive à faire sans problème en faisant comme ca:

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
     shape.TextFrame.TextRange.ParagraphFormat.Bullet.Font.Name = "Webdings";
     
                        shape.TextFrame.TextRange.ParagraphFormat.Bullet.Font.Bold = Microsoft.Office.Core.MsoTriState.msoFalse;
                        shape.TextFrame.TextRange.ParagraphFormat.Bullet.Font.Italic = Microsoft.Office.Core.MsoTriState.msoFalse;
                        shape.TextFrame.TextRange.ParagraphFormat.Bullet.Font.Shadow = Microsoft.Office.Core.MsoTriState.msoFalse;
                        shape.TextFrame.TextRange.ParagraphFormat.Bullet.Font.Underline = Microsoft.Office.Core.MsoTriState.msoFalse;
                        shape.TextFrame.TextRange.ParagraphFormat.Bullet.Font.Emboss = Microsoft.Office.Core.MsoTriState.msoFalse;
                        shape.TextFrame.TextRange.ParagraphFormat.Bullet.Character = 60;
                        shape.TextFrame.TextRange.ParagraphFormat.Bullet.Font.Color.RGB = color.ToArgb();
     
                        shape.TextFrame.TextRange.ParagraphFormat.Bullet.Font.Size = selection.TextRange.Font.Size/2;
    le soucie c'est que je veux rendre la taille (size) cela plus dinamyc.
    c'est à dire qu'il faut que la taille de ma bullet soi fonction de celle de mon texte???
    Merci de m'aider.

  2. #2
    Membre du Club
    Profil pro
    Inscrit en
    Février 2010
    Messages
    69
    Détails du profil
    Informations personnelles :
    Localisation : France, Paris (Île de France)

    Informations forums :
    Inscription : Février 2010
    Messages : 69
    Points : 63
    Points
    63
    Par défaut
    BOnjour

    Pour ceux que ca interrèsse j'ai trouvé la solution:

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
                        // I prepare a different characteristic of my Bullet
                        selection.TextRange.ParagraphFormat.Bullet.Font.Name = "Webdings";
     
                        selection.TextRange.ParagraphFormat.Bullet.Font.Bold = Microsoft.Office.Core.MsoTriState.msoFalse;
                        selection.TextRange.ParagraphFormat.Bullet.Font.Italic = Microsoft.Office.Core.MsoTriState.msoFalse;
                        selection.TextRange.ParagraphFormat.Bullet.Font.Shadow = Microsoft.Office.Core.MsoTriState.msoFalse;
                        selection.TextRange.ParagraphFormat.Bullet.Font.Underline = Microsoft.Office.Core.MsoTriState.msoFalse;
                        selection.TextRange.ParagraphFormat.Bullet.Font.Emboss = Microsoft.Office.Core.MsoTriState.msoFalse;
                        selection.TextRange.ParagraphFormat.Bullet.Character = 60;
                        selection.TextRange.ParagraphFormat.Bullet.Font.Color.RGB = color.ToArgb();
     
                        //I use it for my Bullets Size
                        selection.TextRange.ParagraphFormat.Bullet.RelativeSize = 1;

    fallait juste rajouter ça:

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
     selection.TextRange.ParagraphFormat.Bullet.RelativeSize = 1;
    A plus

+ Répondre à la discussion
Cette discussion est résolue.

Discussions similaires

  1. Réponses: 2
    Dernier message: 14/08/2014, 10h51
  2. Comment faire un event mousedown
    Par formule dans le forum jQuery
    Réponses: 3
    Dernier message: 01/08/2009, 20h59
  3. Comment faire un diaporama sur PowerPoint 2007
    Par Abstract_cl dans le forum Powerpoint
    Réponses: 2
    Dernier message: 03/12/2007, 15h14
  4. Réponses: 4
    Dernier message: 28/07/2006, 13h10
  5. Comment faire pour créer un bitmap
    Par GliGli dans le forum C++Builder
    Réponses: 2
    Dernier message: 24/04/2002, 15h41

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo