ShapeCrawler icon indicating copy to clipboard operation
ShapeCrawler copied to clipboard

Add Slide Number

Open ashahabov opened this issue 2 years ago • 7 comments

Add API to set up Slide Number on Slide Master:

Acceptance Criteria

  • [x] I can set the slide number that is automatically added to a new slide.
  • [x] I can update the font size of slide numbers.
  • [x] I can update the font color of slide numbers.
  • [x] I can update the location of slide numbers.

ashahabov avatar Jul 02 '23 10:07 ashahabov

is there possible to add the font style by selected words in a sentence (for textframe property) .. Example : I can set the slide number that is automatically added to a new slide.

In one sentence I would like to add multi styles for words ..

sample : shape.TextFrame.TextRange(1,10)Font.Bold = true;

text range = 1 to 10 letters will be bold .. same like this for other styles too . bold ,Italy ,font color, background font color..etc

DarwinRajagopalan avatar Jul 04 '23 12:07 DarwinRajagopalan

@DarwinRajagopalan

You can use Portions:

shape.TextFrame!.Paragraphs[0].Portions[0].Font.Bold = true;

huchim avatar Jul 04 '23 16:07 huchim

when this #540 is completed .comment here. and please give one example how to do it.

Akshay-Warule avatar Jul 05 '23 04:07 Akshay-Warule

@DarwinRajagopalan

You can use Portions:

shape.TextFrame!.Paragraphs[0].Portions[0].Font.Bold = true;

@DarwinRajagopalan, @Akshay-Warule, does it work for you or something else? Could you give a feedback please?

ashahabov avatar Jul 05 '23 17:07 ashahabov

@DarwinRajagopalan You can use Portions:

shape.TextFrame!.Paragraphs[0].Portions[0].Font.Bold = true;

@DarwinRajagopalan, @Akshay-Warule, does it work for you or something else? Could you give a feedback please?

yeah its worked

IParagraph p =  textFrame!.Paragraphs.First();
p.AddPortion("Hai,");
p.AddPortion("how are you?");
p.Portions[0].Font.IsBold=true;
p.Portions[1].Font.IsBold=false;

output: Hai, how are you?

Thanks lot .. am really happy on your quick response and its worked too

DarwinRajagopalan avatar Jul 05 '23 17:07 DarwinRajagopalan

Is Slide Number work is done. Can I set Slide Number to Page Number and give X , Y cordinates and Font Size, Color to Page Number. And when When new Slide get added Page Number of that slide get added Automatically . How can I do this please give some example.

Akshay-Warule avatar Jul 06 '23 09:07 Akshay-Warule

Add API to set up Slide Number on Slide Master:

Acceptance Criteria

  • I can set the slide number that is automatically added to a new slide.
  • I can update the font size of slide numbers.
  • I can update the font color of slide numbers.

here Please add X,Y cordinates, Font Size and Font Color on Slide , So We can give PageNumber at bottom.

Akshay-Warule avatar Jul 07 '23 12:07 Akshay-Warule