iOS
ComPDFKit PDF SDK
Guides

Set Text Properties          

 

- You can use setEditingSelectionFontSize of CPDFView to set the font size of the currently selected code block or text. The following code will show you how to do this.    

 

[self setEditingSelectionFontSize:14.0];


- You can use setEditingSelectionFontColor of CPDFView to set the font color of the currently selected code block or text. The following code will show you how to do this.

 

objective-c [self setEditingSelectionFontColor:[CPDFKitPlatformColor redColor]]; 


- You can use setCurrentSelectionAlignment of CPDFView to set the alignment of the currently selected code block or text. The following code will show you how to do this.

 

objective-c [self setCurrentSelectionAlignment:NSTextAlignmentCenter];