Class LowCodeSaveOptionsProviderOfAssembling

Class LowCodeSaveOptionsProviderOfAssembling

Namespace: Aspose.Cells.LowCode
Assembly: Aspose.Cells.dll (25.4.0)

Implementation to provide save options which save split parts to files and the path of resultant file are named as(it may contains directories): Aspose.Cells.LowCode.LowCodeSaveOptionsProviderOfAssembling.PathHeader+Aspose.Cells.LowCode.LowCodeSaveOptionsProviderOfAssembling.SheetPrefix+SheetIndex(or SheetName) +Aspose.Cells.LowCode.LowCodeSaveOptionsProviderOfAssembling.SplitPartPrefix+SplitPartIndex+Aspose.Cells.LowCode.LowCodeSaveOptionsProviderOfAssembling.PathTail.

public class LowCodeSaveOptionsProviderOfAssembling : AbstractLowCodeSaveOptionsProvider

Inheritance

object AbstractLowCodeSaveOptionsProvider LowCodeSaveOptionsProviderOfAssembling

Inherited Members

AbstractLowCodeSaveOptionsProvider.GetSaveOptions(SplitPartInfo) , AbstractLowCodeSaveOptionsProvider.Finish(LowCodeSaveOptions)

Constructors

LowCodeSaveOptionsProviderOfAssembling()

public LowCodeSaveOptionsProviderOfAssembling()

Properties

BuildPathWithSheetAlways

Whether add sheet index or name to file path always. Default value is false, that is, when there is only one sheet, the sheet index(or name) and corresponding prefix will not be added to the file path.

public bool BuildPathWithSheetAlways { get; set; }

Property Value

bool

BuildPathWithSplitPartAlways

Whether add split part index to file path always. Default value is false, that is, when there is only one split part, the split part index and corresponding prefix will not be added to the file path.

public bool BuildPathWithSplitPartAlways { get; set; }

Property Value

bool

PathHeader

Header part(before added content of sheet and split part) of file path.

public string PathHeader { get; set; }

Property Value

string

PathTail

Tailing part(after sequence numbers) of file path. It should include extension of file name.

public string PathTail { get; set; }

Property Value

string

SaveOptionsTemplate

The template for creating instance of save options in Aspose.Cells.LowCode.LowCodeSaveOptionsProviderOfAssembling.GetSaveOptions(Aspose.Cells.LowCode.SplitPartInfo).

public LowCodeSaveOptions SaveOptionsTemplate { get; set; }

Property Value

LowCodeSaveOptions

Remarks

If the template has been specified, then the created instance will copy all setting from it and update the output file accordingly.

SheetIndexOffset

Offset of sheet’s index between what used in file path and its actual value(Aspose.Cells.LowCode.SplitPartInfo.SheetIndex).

public int SheetIndexOffset { get; set; }

Property Value

int

Remarks

Only takes effect when Aspose.Cells.LowCode.LowCodeSaveOptionsProviderOfAssembling.UseSheetName is false.

SheetPrefix

Prefix for the index of worksheet.

public string SheetPrefix { get; set; }

Property Value

string

Remarks

If there is only one worksheet and Aspose.Cells.LowCode.LowCodeSaveOptionsProviderOfAssembling.BuildPathWithSheetAlways is false, then this prefix and the sheet index(or name) will not be added to the resultant file path.

SplitPartIndexOffset

Offset of split part’s index between what used in file path and its actual value(Aspose.Cells.LowCode.SplitPartInfo.PartIndex).

public int SplitPartIndexOffset { get; set; }

Property Value

int

SplitPartPrefix

Prefix for the index of split part.

public string SplitPartPrefix { get; set; }

Property Value

string

Remarks

If there is only one split part and Aspose.Cells.LowCode.LowCodeSaveOptionsProviderOfAssembling.BuildPathWithSplitPartAlways is false, then this prefix and the split part index(0) will not be added to the resultant file path.

UseSheetName

Whether builds the file path with sheet name instead of sheet index. Default value is false.

public bool UseSheetName { get; set; }

Property Value

bool

Remarks

The sheet name will never be rebuilt automatically. So when set it to true, please make sure there is no special sheet name that can cause invalid file path or name.

Methods

GetSaveOptions(SplitPartInfo)

Gets the save options from which to get the output settings for currently split part.

public override LowCodeSaveOptions GetSaveOptions(SplitPartInfo part)

Parameters

part SplitPartInfo

Returns

LowCodeSaveOptions

 English