---
title: "notShownAttribute(forGlyphAt:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nslayoutmanager/notshownattribute(forglyphat:)"
---

# notShownAttribute(forGlyphAt:)

Indicates whether the glyph at the specified index has a visible representation.

## Declaration

```swift
func notShownAttribute(forGlyphAt glyphIndex: Int) -> Bool
```

## Parameters

- `glyphIndex`: Index of the glyph.

## Return Value

Return Value true if the glyph at glyphIndex is not shown; otherwise false.

## Discussion

Discussion Some glyphs are not shown.  For example, a tab, newline, or attachment glyph is not shown; it just affects the layout of following glyphs or locates the attachment graphic. Space characters, however, typically are shown as glyphs with a displacement, although they leave no visible marks. This method causes glyph generation and layout for the line fragment containing the specified glyph, or if noncontiguous layout is not enabled, up to and including that line fragment. Raises an NSRangeException if glyphIndex is out of bounds.

## See Also

### Getting layout information

- [attachmentSize(forGlyphAt:)](appkit/nslayoutmanager/attachmentsize(forglyphat:).md)
- [drawsOutsideLineFragment(forGlyphAt:)](appkit/nslayoutmanager/drawsoutsidelinefragment(forglyphat:).md)
- [extraLineFragmentRect](appkit/nslayoutmanager/extralinefragmentrect.md)
- [extraLineFragmentTextContainer](appkit/nslayoutmanager/extralinefragmenttextcontainer.md)
- [extraLineFragmentUsedRect](appkit/nslayoutmanager/extralinefragmentusedrect.md)
- [firstUnlaidCharacterIndex()](appkit/nslayoutmanager/firstunlaidcharacterindex().md)
- [firstUnlaidGlyphIndex()](appkit/nslayoutmanager/firstunlaidglyphindex().md)
- [getFirstUnlaidCharacterIndex(_:glyphIndex:)](appkit/nslayoutmanager/getfirstunlaidcharacterindex(_:glyphindex:).md)
- [lineFragmentRect(forGlyphAt:effectiveRange:)](appkit/nslayoutmanager/linefragmentrect(forglyphat:effectiverange:).md)
- [lineFragmentRect(forGlyphAt:effectiveRange:withoutAdditionalLayout:)](appkit/nslayoutmanager/linefragmentrect(forglyphat:effectiverange:withoutadditionallayout:).md)
- [lineFragmentUsedRect(forGlyphAt:effectiveRange:)](appkit/nslayoutmanager/linefragmentusedrect(forglyphat:effectiverange:).md)
- [lineFragmentUsedRect(forGlyphAt:effectiveRange:withoutAdditionalLayout:)](appkit/nslayoutmanager/linefragmentusedrect(forglyphat:effectiverange:withoutadditionallayout:).md)
- [location(forGlyphAt:)](appkit/nslayoutmanager/location(forglyphat:).md)
- [truncatedGlyphRange(inLineFragmentForGlyphAt:)](appkit/nslayoutmanager/truncatedglyphrange(inlinefragmentforglyphat:).md)
