Examples of CTVariant


Examples of org.openxmlformats.schemas.officeDocument.x2006.docPropsVTypes.CTVariant

    CTVector vector = vectorv.getVector();
    CTVariant[] variants = vector.getVariantArray();
    int sheetCount = -1;
    int nameCount = -1;
    for(int j = 0; j < variants.length; ++j) {
      final CTVariant variant = variants[j];
      if ((j & 1) == 0) { //string
        String key = variant.getLpstr();
        if ("Worksheets".equalsIgnoreCase(key)) {
          final CTVariant variant2 = variants[++j];
          sheetCount = variant2.getI4();
        } else if ("Named Ranges".equalsIgnoreCase(key)) {
          final CTVariant variant2 = variants[++j];
          nameCount = variant2.getI4();
        }
      }
    }
    if (sheetCount >= 0 && nameCount >= 0) {
      nameCount += sheetCount;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.