Questions tagged [custom-properties]

Use the custom-properties tag for questions relating to using non-standard or ad hoc properties in programming languages, APIs, or programming tools that allow them. For questions about custom properties in CSS, use the css-variables tag, instead.

Custom properties are just that: non-standard or ad hoc properties in programming languages, APIs, or programming tools that allow them to be defined by the programmer when writing code or during run time. For questions about custom properties in CSS, use the tag, instead.

115 questions
1
vote
0 answers

MVC5 article System with ApplicationUser As Property to get user info

Hi im working on a Article page and have a model for articles that takes a ApplicatonUser Property.. public class postModels { public int ID { get; set; } public postModels parentPost { get; set; } …
1
vote
3 answers

Updating Custom Object Properties in JavaScript

I'm tired of looping through an object literal to get its length for one reason or another. I want to define a length property onto Object.prototype, I can set the initial length, but I don't know how to update it when the object is modified? var…
1
vote
1 answer

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

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…
Paul T Davies
  • 2,527
  • 2
  • 22
  • 39
1
vote
1 answer

Print a Custom doc property

Here is my current code. Sub PrintMasterTime() Dim PropVal As Integer PropVal = ActiveDocument.CustomDocumentProperties(MasterTime).Value Print PropVal End Sub Compile Error: Method not valid without suitable object Not sure why it's not…
Clyde
  • 127
  • 9
1
vote
0 answers

Read custom properties from file

I am trying to read the custom properties from a Solid Edge file (Right clic -> Properties -> Custom tab). But I found only 2 types of code. The first is for read/set custom properties on a Office document (like .doc / .docx). And the second is…
Phobie
  • 99
  • 2
  • 15
1
vote
2 answers

apache poi read custom property

I have added a custom property to my workbook object like: ((XSSFWorkbook)workBook).getProperties().getCustomProperties().addProperty("fileNameSuffix" , "testName"); Now how can I read it back again. Why there is no such method as…
Soosh
  • 812
  • 1
  • 8
  • 24
1
vote
0 answers

Visual Webpart Custom Property filled for the first time

I have a webpart with two custom properties: path to a folder and name of parent node. I want the page only to reload if one of these properties changes. If there is no change of the properties I want to expand and populate the folder structure of…
Jimmy92
  • 11
  • 1
1
vote
1 answer

as3 creating a custom property in Emanuele Feronato's "Flash Game Development by Example"

I recently picked up Emanuele Feronato's Flash Game Development by Example to try and help expand my knowledge of game design and actionscript 3, and I'm stuck on the first chapter where we're building basically a memory match two game where you…
1
vote
0 answers

Is there a way to get my custom properties to show up in eclipse intellisense

I have a custom View and it has a bunch of custom attributes that I pull in from the layout xml. However, unlike the properties that follow android: for which Eclipse offers me all the available options (and their possible values) my custom…
Yevgeny Simkin
  • 27,946
  • 39
  • 137
  • 236
1
vote
0 answers

how to add custom property to windows form?

I would like to add custom property to windows form not to control so when I click form property in designer view I could see this property and change it
user3188370
  • 107
  • 1
  • 1
  • 7
1
vote
2 answers

SharePoint Custom Web Part With Active Directory

I am currently working on a custom SharePoint web part (WSS 3.0, not MOSS) that will pull in information for all of the users in Active Directory to build an up to date employee directory. This web part shows things like phone number, address, and…
Jake
  • 13
  • 3
1
vote
1 answer

Silverlight, custom object for shapes

I am studding Silverlight. I have an application where I create Polygons in UserControl_Loaded method. During creation stage I add MouseLeftButtonUp event handler like this: polygon.MouseLeftButtonUp +=…
Antipod
  • 1,593
  • 3
  • 23
  • 43
1
vote
2 answers

Add a custom property to a UserControl

i need help with adding a custom property to a UserControl. I created a Video Player UserControl and i want to implement it in another application. I have a mediaElement control in my UserControl and i want to access mediaElement.Source from the app…
1
vote
1 answer

How to remove custom properties in docx4j

It is possible to add custom properties in docx4j like this: final DocPropsCustomPart customPart = getDocPropsCustomPart(); final Properties customProperties = customPart.getJaxbElement(); ... customProperties.getProperty().add(newProperty); But…
George Hernando
  • 2,550
  • 7
  • 41
  • 61
1
vote
0 answers

Sharepoint 2010 Timer Job Custom Properties

I am converting a WSS3 Timer Job to SP 2010 and having problems with Custom Properties. In WSS3 i had to download an deploy a Timer Job Manager which sat in Sharepoint Administration and allowed me to manage the date and time of when jobs were run…