Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 
 package org.docx4j.sharedtypes;
 

Java class for ST_YAlign.

The following schema fragment specifies the expected content contained within this class.

 <simpleType name="ST_YAlign">
   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
     <enumeration value="inline"/>
     <enumeration value="top"/>
     <enumeration value="center"/>
     <enumeration value="bottom"/>
     <enumeration value="inside"/>
     <enumeration value="outside"/>
   </restriction>
 </simpleType>
 
@XmlType(name = "ST_YAlign", namespace = "http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes")
public enum STYAlign {


    
In line With Text
    @XmlEnumValue("inline")
    INLINE("inline"),

    
Top
    @XmlEnumValue("top")
    TOP("top"),

    
Centered Vertically
    @XmlEnumValue("center")
    CENTER("center"),

    
Bottom
    @XmlEnumValue("bottom")
    BOTTOM("bottom"),

    
Inside Anchor Extents
    @XmlEnumValue("inside")
    INSIDE("inside"),

    
Outside Anchor Extents
    @XmlEnumValue("outside")
    OUTSIDE("outside");
    private final String value;
    STYAlign(String v) {
         = v;
    }
    public String value() {
        return ;
    }
    public static STYAlign fromValue(String v) {
        for (STYAlign c: STYAlign.values()) {
            if (c.value.equals(v)) {
                return c;
            }
        }
        throw new IllegalArgumentException(v);
    }
New to GrepCode? Check out our FAQ X