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
0
votes
0 answers

Replace custom property in external CSS with jQuery

I need to replace one of the custom properties in CSS on demand. I specify multiple background for my body and when the user clicks specific buttons I'd like to change some of those backgrounds. For example at the beginning stylesheet looks like…
basilique
  • 173
  • 2
  • 9
0
votes
0 answers

Importing CustomDocumentProperties from Word to Excel using VBA

I am trying to pull CustomDocumentProperties from a Word Document (that I select using Application.GetOpenFilename) to an Excel Sheet. I can get the to run code using the number of the item: Set ExcelRange = Range("DataFields") For r =…
0
votes
1 answer

Can I use a css custom property inside an HTML file?

Is it possible to use a css custom property within an HTML tag for an inline svg element? Say I have an inline svg element: Now, this statement isn't valid, but is there a way to use --image-width in the…
Mr No
  • 113
  • 1
  • 10
0
votes
1 answer

Angular + CSS Custom properties syntax

I've contributed to a public repo using angular 9.1.6 with the following syntax
This is a div
And I got a compiled html like this
This is a div
That got…
subarroca
  • 851
  • 7
  • 22
0
votes
1 answer

Office 365 JavaScript API - get list of custom properties and values

I tried going through the documentation and failed to find any information about accessing the custom properties of an Office 365 document. I want to to be able to access these properties to perform certain actions on them from my Office 365…
CodeMilian
  • 1,262
  • 2
  • 17
  • 41
0
votes
1 answer

VSTO: hide contact properties

I am new to VSTO, and am developing an addon to Outlook that will allow the end users to track relationships between contacts. The relationships are stored in a separate SQL database, and I put the ID of the SQL data row in a custom property…
gillonba
  • 897
  • 9
  • 24
0
votes
0 answers

Is it possible to have more than one type for a CustomPropertyDrawer?

I am currently trying to make a CustomPropertyDrawer in Unity for the inspector. The point is that all Lists and arrays with the Attribute gets a better looking then it is normally. Now I ran into the problem that I would need a code like that…
KaNaDa
  • 141
  • 12
0
votes
0 answers

Restrict on Custom-Property Not Working in Outlook Calendar Items

I want to add a custom property to my calendar items (ideally it will contain a unique ID), so that I can use Restrict to collect instances of recurring appointment items. But while I seem to be able to add the property, I cannot find any way to…
casewolf
  • 190
  • 10
0
votes
0 answers

Trying to parse a Word document, receiving COM exceptions

This is my code to read custom properties from a file. This works on all file types. but shows System.Runtime.InteropServices.COMException (0x80004005): on word document 2013 Unspecified error (Exception from HRESULT: 0x80004005 (E_FAIL))…
0
votes
1 answer

css modules, postcss + webpack with IE 11 fallback

My question is more approach. I have a project that uses only css, with css custom properties. vars for example. This project is react, with css modules enabled. With a structure like below: component -- folder1 ---- folder1.css --…
0
votes
1 answer

C#- Custom Property of Custom Controls

I am creating a custom control using c# in windows form application that uses windows media player control. I want to create a property isPlaying as a boolean. If its true, the video should play and if its false, it should pause. In simple words, I…
0
votes
1 answer

ASP.NET Component with custom property form

I'm developing a custom DataGridView control for internal use and I'd like to add a custom property option where it launches a WinForm for adding custom properties. Think of the Columns property designer of the DataGridView where you click a button…
dstr
  • 8,362
  • 12
  • 66
  • 106
0
votes
1 answer

Custom properties in form control

I'm currently using Orbeon v. 2017.1.1 embedded in an ASP .Net core web app written in C#. I need to add some custom properties to a form control. These properties are a key-value pair. Is there some pre-built mechanism that let me add these…
Planti
  • 35
  • 5
0
votes
1 answer

WPF designer custom properties - dropdown

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: /// /// Interaction logic for Sample.xaml /// public partial class Sample :…
okipol
  • 1,197
  • 3
  • 11
  • 27
0
votes
0 answers

No built-in property editor for the WPF Pen type in Visual Studio?

While writing a custom WPF control, I have been surprised that WPF does not provide a built-in visual editor for properties of the System.Windows.Media.Pen type. I expected to see something similar to the editor for Brush-based properties: After…
TecMan
  • 2,743
  • 2
  • 30
  • 64