Hi Muhammed,
I have prepared an example for verticle alignment of text. It also fills the text frame with some color, however, it does not achieve the text highlight requirement in one text frame. As a workaround, you can use different text frames for the texts to be highlighted by filling those TextFrames with some color and using TextFramr.setFitShapeToText(true) method.
Presentation pres=new Presentation();
Slide slide=pres.getSlideByPosition(1);
com.aspose.slides.Rectangle bitName = slide.getShapes().addRectangle(1000, 1000, 1000, 500);
TextFrame bitNameTF = bitName.addTextFrame("Some Text");
bitNameTF.setMarginTop(0);
bitNameTF.setMarginLeft(2);
bitNameTF.setMarginBottom((float)12);
bitNameTF.getLineFormat().setShowLines(true);
com.aspose.slides.Paragraph bitPara2 = bitNameTF.getParagraphs().get(0);
bitPara2.setAlignment(TextAlignment.RIGHT);
Portion bitPort2 = bitNameTF.getParagraphs().get(0).getPortions().get(0);
bitPort2.setFontColor(java.awt.Color.blue);
bitPort2.setFontHeight((short)15);
bitNameTF.getFillFormat().setType(FillType.SOLID);
bitNameTF.getFillFormat().setForeColor(java.awt.Color.YELLOW);
pres.write("TextAlign.ppt");