# CustomTitleBar class

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

```cs
public class CustomTitleBar : Drawable
```

A control which acts as a custom titlebar on certain Grasshopper windows.

## Constructors

- [CustomTitleBar](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.customtitlebar/ctor.md)

## Fields

- [BarHeight](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.customtitlebar/barheight.md): (static) Height of the custom title bar.
- [EdgeWidth](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.customtitlebar/edgewidth.md): (static) Edge width around the contents of the custom title bar.

## Properties

- [ShowCloseButton](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.customtitlebar/showclosebutton.md)
- [ShowCopyButton](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.customtitlebar/showcopybutton.md)
- [ShowInBold](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.customtitlebar/showinbold.md)
- [ShowPhotoButton](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.customtitlebar/showphotobutton.md)
- [TitleText](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.customtitlebar/titletext.md)

## Methods

- [ScreenShotWindow](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.customtitlebar/screenshotwindow.md): Screen shot the portion of the window this title bar is controlling.

## Events

- [CopyInvoked](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.customtitlebar/copyinvoked.md): Event is raised whenever the user clicks on the Copy button.
- [PhotoStarting](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.customtitlebar/photostarting.md): Event is raised whenever the screen cap operation is about to start. If you wish to make certain changes to the control before this happens, now's the time.
