FileDescriptionSize Property
The size of the document in bytes.

Namespace: GroupDocs.Viewer.Domain
Assembly: GroupDocs.Viewer (in GroupDocs.Viewer.dll) Version: 19.6
Syntax
public long Size { get; set; }

Property Value

Type: Int64
The size.
Examples
The following example demonstrates how to get the size of the document in bytes.
C#
ViewerConfig config = new ViewerConfig();
config.StoragePath = @"C:\storage";

ViewerImageHandler imageHandler = new ViewerImageHandler(config);
FileListContainer container = imageHandler.GetFileList();

foreach (FileDescription fileDescription in container.Files)
{
    if (!fileDescription.IsDirectory) 
    { 
       Console.WriteLine("File size is {0}", fileDescription.Size);
    }
}
See Also