NSParagraphStyle(KDIExtensions)

@interface NSParagraphStyle (KDIExtensions)

/**
 Calls `[self KDI_paragraphStyleWithTextAlignment:]`, passing NSTextAlignmentCenter.
 
 @return The paragraph style with center text alignment
 */
+ (NSParagraphStyle *)KDI_paragraphStyleWithCenterTextAlignment;
/**
 Calls `[self KDI_paragraphStyleWithTextAlignment:]`, passing NSTextAlignmentRight.
 
 @return The paragraph style with right text alignment
 */
+ (NSParagraphStyle *)KDI_paragraphStyleWithRightTextAlignment;
/**
 Returns a paragraph style with provided text alignment.
 
 @param textAlignment The desired text alignment of the paragraph style
 @return The paragraph style
 */
+ (NSParagraphStyle *)KDI_paragraphStyleWithTextAlignment:(NSTextAlignment)textAlignment;

@end

Undocumented

  • Calls [self KDI_paragraphStyleWithTextAlignment:], passing NSTextAlignmentCenter.

    Declaration

    Objective-C

    + (nonnull NSParagraphStyle *)KDI_paragraphStyleWithCenterTextAlignment;

    Return Value

    The paragraph style with center text alignment

  • Calls [self KDI_paragraphStyleWithTextAlignment:], passing NSTextAlignmentRight.

    Declaration

    Objective-C

    + (nonnull NSParagraphStyle *)KDI_paragraphStyleWithRightTextAlignment;

    Return Value

    The paragraph style with right text alignment

  • Returns a paragraph style with provided text alignment.

    Declaration

    Objective-C

    + (nonnull NSParagraphStyle *)KDI_paragraphStyleWithTextAlignment:
        (NSTextAlignment)textAlignment;

    Parameters

    textAlignment

    The desired text alignment of the paragraph style

    Return Value

    The paragraph style