Mac Developer Library

Developer

AppKit Framework Reference NSTextTableBlock Class Reference

Options
Deployment Target:

On This Page
Language:

NSTextTableBlock

Inheritance


Conforms To


Import Statement


Swift

import AppKit

Objective-C

@import AppKit;

Availability


Available in OS X v10.4 and later.

An NSTextTableBlock object represents a text block that appears as a cell in a text table.

  • Returns an initialized text table block.

    Declaration

    Swift

    init(table table: NSTextTable, startingRow row: Int, rowSpan rowSpan: Int, startingColumn col: Int, columnSpan colSpan: Int)

    Objective-C

    - (instancetype)initWithTable:(NSTextTable *)table startingRow:(NSInteger)row rowSpan:(NSInteger)rowSpan startingColumn:(NSInteger)col columnSpan:(NSInteger)colSpan

    Parameters

    table

    The text table containing this text table block.

    row

    The table row at which the text table block starts.

    rowSpan

    How many rows the text table block covers.

    col

    The table column at which the text table block starts.

    colSpan

    How many columns the text table block covers.

    Discussion

    This is the designated initializer.

    Import Statement

    Objective-C

    @import AppKit;

    Swift

    import AppKit

    Availability

    Available in OS X v10.4 and later.

  • Returns the table containing this text table block.

    Declaration

    Swift

    var table: NSTextTable { get }

    Objective-C

    @property(readonly, strong) NSTextTable *table

    Return Value

    The table containing this text table block.

    Import Statement

    Objective-C

    @import AppKit;

    Swift

    import AppKit

    Availability

    Available in OS X v10.4 and later.

  • Returns the table row at which this text table block starts.

    Declaration

    Swift

    var startingRow: Int { get }

    Objective-C

    @property(readonly) NSInteger startingRow

    Return Value

    The table row at which this text table block starts.

    Import Statement

    Objective-C

    @import AppKit;

    Swift

    import AppKit

    Availability

    Available in OS X v10.4 and later.

  • Returns the number of table rows spanned by this text table block.

    Declaration

    Swift

    var rowSpan: Int { get }

    Objective-C

    @property(readonly) NSInteger rowSpan

    Return Value

    The number of table rows spanned by this text table block.

    Import Statement

    Objective-C

    @import AppKit;

    Swift

    import AppKit

    Availability

    Available in OS X v10.4 and later.

  • Returns the table column at which this text table block starts.

    Declaration

    Swift

    var startingColumn: Int { get }

    Objective-C

    @property(readonly) NSInteger startingColumn

    Return Value

    The table column at which this text table block starts.

    Import Statement

    Objective-C

    @import AppKit;

    Swift

    import AppKit

    Availability

    Available in OS X v10.4 and later.

  • Returns the number of table columns spanned by this text table block.

    Declaration

    Swift

    var columnSpan: Int { get }

    Objective-C

    @property(readonly) NSInteger columnSpan

    Return Value

    The number of table columns spanned by this text table block.

    Import Statement

    Objective-C

    @import AppKit;

    Swift

    import AppKit

    Availability

    Available in OS X v10.4 and later.