Customize the Value of Auto generated Document ID in SharePoint library


public override void ItemAdded(SPItemEventProperties properties)
{
    base.ItemAdded(properties);
    SPListItem item = properties.ListItem;
    String id = item["ID"].ToString();
}