# MaskedString struct

Namespace: [Grasshopper2.Types](https://developer.rhino3d.com/api/gh2/namespace/grasshopper2.types.md) · Assembly: [Grasshopper2](https://developer.rhino3d.com/api/gh2/assembly/grasshopper2.md)

```cs
public struct MaskedString
```

A string with certain characters masked. THIS IS UNFINISHED.

## Constructors

- [MaskedString](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.maskedstring/ctor.md)

## Properties

- [Length](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.maskedstring/length.md): Gets the length of te underlying string.
- [MaskedCount](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.maskedstring/maskedcount.md): Counts the number of masked entries
- [Text](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.maskedstring/text.md): Gets the underlying string.
- [UnmaskedCount](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.maskedstring/unmaskedcount.md)

## Indexers

- [this[]](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.maskedstring/item.md): Gets the character and mask state of a specific index.

## Methods

- [GrowMask](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.maskedstring/growmask.md): Return a new masked string whose masked blocks are one character bigger on either end.
- [IsMasked](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.maskedstring/ismasked.md): (2 overloads) Gets whether the characters in the given range are all masked.
- [IsNullOrEmpty](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.maskedstring/isnullorempty.md): Gets whether the underlying string is null or empty.
- [IsNullOrWhiteSpace](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.maskedstring/isnullorwhitespace.md): Gets whether the underlying string is null or only contain whitespace.
- [MaskAll](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.maskedstring/maskall.md): Mask all characters.
- [MaskRange](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.maskedstring/maskrange.md): Mask a range of characters.
- [ShrinkMask](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.maskedstring/shrinkmask.md): Return a new masked string whose masked blocks are one character smaller on either end.
- [Substring](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.maskedstring/substring.md): (2 overloads)
- [ToLower](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.maskedstring/tolower.md)
- [ToString](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.maskedstring/tostring.md)
- [ToUpper](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.maskedstring/toupper.md)
- [UnmaskAll](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.maskedstring/unmaskall.md): Unmask all characters.
- [UnmaskRange](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.maskedstring/unmaskrange.md): Unmask a range of characters.

## Operators

- [operator &](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.maskedstring/op-bitwiseand.md): (static) 'And' two masks together.
- [operator |](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.maskedstring/op-bitwiseor.md): (static) 'Or' two masks together.
- [operator !](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.maskedstring/op-logicalnot.md): (static) Negate a string mask.

## Convertors

- [operator implicit](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.maskedstring/op-implicit.md): (static)
