Item
WarningInfoCollection indexer
Hämtar ett objekt vid det angivna indexet.
public WarningInfo this[int index] { get; }
Parameter | Beskrivning |
---|---|
index | Nollbaserat index för objektet. |
Exempel
Visar hur man får varningar om format som inte stöds.
WarningInfoCollection warnings = new WarningInfoCollection();
Document doc = new Document(MyDir + "FB2 document.fb2", new LoadOptions { WarningCallback = warnings });
Assert.AreEqual("The original file load format is FB2, which is not supported by Aspose.Words. The file is loaded as an XML document.", warnings[0].Description);
Assert.AreEqual(1, warnings.Count);
Se även
- class WarningInfo
- class WarningInfoCollection
- namnutrymme Aspose.Words
- hopsättning Aspose.Words