---
title: "CustomFormatReader..::.SetFrameCount Method "
canonical: https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_Codecs_CustomFormatReader_SetFrameCount_1_e1836fc4.htm
product: "Graphics Mill 5.5 for .NET"
---

This documentation is for the old version. [Go to the latest Graphics Mill docs](https://www.graphicsmill.com/docs/gm/)

# CustomFormatReader.SetFrameCount Method 
 
Sets the maximum possible frame count supported by this codec.
 
**Namespace:** [Aurigma.GraphicsMill.Codecs](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_Codecs.htm.md)
 **Assembly:** Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
 
## Syntax
  
```
Protected Friend Sub SetFrameCount ( _count As Integer _
)
```
 
```csharp
protected internal void SetFrameCount(int count
)
```
 
### Parameters
 
 - count
     - Type: [System.Int32](http://msdn2.microsoft.com/en-us/td2s409d)
Number of frames which can be stored in files of this format.
 
## Remarks
  
This method should be called when the file is being opened.
   
## See Also

### Reference

- [CustomFormatReader Class](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Codecs_CustomFormatReader.htm.md)
- [Aurigma.GraphicsMill.Codecs Namespace](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_Codecs.htm.md)
