custom-properties

How can I read Excel custom properties in Office Javascript API?

旧街凉风 提交于 2020-01-14 03:06:21
问题 I have a tab pane app that needs to access the custom properties of the current MS Office document, which can be Word or Excel. There seems to be no built in way of doing this with the Office JavaScript API, but in Word, I use the Office.context.document.getFileAsync() method to return the entire file. I can then unzip it, read in the custom.xml file, and navigate through the XML to get the custom properties. However, the Office.context.document.getFileAsync() is not available in Excel. Is

Custom revision properties in Mercurial?

回眸只為那壹抹淺笑 提交于 2020-01-11 10:42:09
问题 Can I setup a custom property for my hg repository so that I could store/retrieve its value for each revision? Like, weather in Tokyo at the time of commit, etc. Same for git? 回答1: This could be a job for: a pre-commit hook in Mercurial (not a precommit hook which runs before the internal commit occurs, when the list of files to commit is already known. But "pre-commit", a generic hook which runs before the commit begin) a git pre-commit hook (but you need to add your file with the updated

WPF tab order with custom controls?

徘徊边缘 提交于 2019-12-30 10:38:31
问题 I have a WPF page that contains several out of the box controls with the tab order set. I have a custom control (NumericSpinner) that contains: border/grid/text box/2 Repeatbuttons (up/down). Two issues: 1) when I am in the textbox for the custom selector control, I cannot tab out of it to other controls on the page. However after clicking on one of the up/down arrows, I am able to tab over to other controls. 2) I am unable to tab into the textbox of the custom control in order. It is only

CAShapeLayer custom property is nil when drawInContext

半城伤御伤魂 提交于 2019-12-24 09:16:08
问题 I denfined a custom layer,and declare a custom property,but it's not work when animation in -(void)drawInContext:(CGContextRef)ctx method here is some code: @interface ZBBProgressLayer : CAShapeLayer @property (nonatomic, assign) CGFloat progress; @property(nullable) CGColorRef progressColor; @end @implementation ZBBProgressLayer + (BOOL)needsDisplayForKey:(NSString *)key{ if ([key isEqualToString:@"progress"]/*progress 属性变化时,重绘*/) { return YES; } return [super needsDisplayForKey:key]; } -

HOWTO read Outlook custom property set with GRAPH

北慕城南 提交于 2019-12-23 01:49:07
问题 I am using the Office.js CustomProperties interface to store application specific data. Using the Office.js library I can succesfully read the information back in different application sessions using Office.js. A different API process needs to read this data using the MS Graph interface. I did read Get custom property set in Outlook Add-In via Microsoft Graph but for me it does not work. I do get the message information but without any extended properties. What is it that I am doing wrong?

WPF designer custom properties - dropdown

我怕爱的太早我们不能终老 提交于 2019-12-11 16:43:59
问题 I would like to have a drop down selection for a custom property on a User Control in WPF. Everything works fine when I use an Enum as the property: /// <summary> /// Interaction logic for Sample.xaml /// </summary> public partial class Sample : System.Windows.Controls.UserControl { public Sample() { InitializeComponent(); } [DefaultValue(Letters.A)] [Browsable(true)] [Category("ControlDisplay")] [Description("Letter")] public Letters Letter { get; set; } public enum Letters { A, B, C, D } }

C# adding collection of custom properties from the property grid at design time

♀尐吖头ヾ 提交于 2019-12-11 07:39:58
问题 I have an issue of not being able to add created columns to the collection of that type. I have the following property: public ObservableCollection<BrowseLayoutColumns> _BrowseLayoutColumns = new ObservableCollection<BrowseLayoutColumns>(); [Category("Design")] public ObservableCollection<BrowseLayoutColumns> BrowseLayoutColumns { get { return _BrowseLayoutColumns; } set { _BrowseLayoutColumns = value; } } BrowseLayoutColumns [TypeConverter(typeof(BrowseLayoutColumns))] public class

Get value from custom attribute-decorated property?

女生的网名这么多〃 提交于 2019-12-09 08:48:16
问题 I've written a custom attribute that I use on certain members of a class: public class Dummy { [MyAttribute] public string Foo { get; set; } [MyAttribute] public int Bar { get; set; } } I'm able to get the custom attributes from the type and find my specific attribute. What I can't figure out how to do is to get the values of the assigned properties. When I take an instance of Dummy and pass it (as an object) to my method, how can I take the PropertyInfo object I get back from .GetProperties(

How can I read Excel custom properties in Office Javascript API?

心不动则不痛 提交于 2019-12-09 05:35:24
I have a tab pane app that needs to access the custom properties of the current MS Office document, which can be Word or Excel. There seems to be no built in way of doing this with the Office JavaScript API, but in Word, I use the Office.context.document.getFileAsync() method to return the entire file. I can then unzip it, read in the custom.xml file, and navigate through the XML to get the custom properties. However, the Office.context.document.getFileAsync() is not available in Excel. Is there another way to read the custom properties? I know that the question is quite old, but since I

Get value from custom attribute-decorated property?

荒凉一梦 提交于 2019-12-03 11:16:55
I've written a custom attribute that I use on certain members of a class: public class Dummy { [MyAttribute] public string Foo { get; set; } [MyAttribute] public int Bar { get; set; } } I'm able to get the custom attributes from the type and find my specific attribute. What I can't figure out how to do is to get the values of the assigned properties. When I take an instance of Dummy and pass it (as an object) to my method, how can I take the PropertyInfo object I get back from .GetProperties() and get the values assigned to .Foo and .Bar? EDIT: My problem is that I can't figure out how to