Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / wpf / src / Core / CSharp / MS / Internal / Ink / InkSerializedFormat / StrokeDescriptor.cs / 1 / StrokeDescriptor.cs
//------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------- using System; // Primary root namespace for TabletPC/Ink/Handwriting/Recognition in .NET namespace MS.Internal.Ink.InkSerializedFormat { internal class StrokeDescriptor { private System.Collections.Generic.List_strokeDescriptor = new System.Collections.Generic.List (); private uint _Size = 0; public uint Size { get { return _Size; } set { _Size = value; } } public System.Collections.Generic.List Template { get { return _strokeDescriptor; } } public StrokeDescriptor() { } public bool IsEqual(StrokeDescriptor strd) { // If the no of templates in them are different return false if( _strokeDescriptor.Count != strd.Template.Count ) return false; // Compare each tag in the template. If any one of them is different, return false; for( int i = 0; i < _strokeDescriptor.Count; i++ ) if( _strokeDescriptor[i] != strd.Template[i] ) return false; return true; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------ // // Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------- using System; // Primary root namespace for TabletPC/Ink/Handwriting/Recognition in .NET namespace MS.Internal.Ink.InkSerializedFormat { internal class StrokeDescriptor { private System.Collections.Generic.List_strokeDescriptor = new System.Collections.Generic.List (); private uint _Size = 0; public uint Size { get { return _Size; } set { _Size = value; } } public System.Collections.Generic.List Template { get { return _strokeDescriptor; } } public StrokeDescriptor() { } public bool IsEqual(StrokeDescriptor strd) { // If the no of templates in them are different return false if( _strokeDescriptor.Count != strd.Template.Count ) return false; // Compare each tag in the template. If any one of them is different, return false; for( int i = 0; i < _strokeDescriptor.Count; i++ ) if( _strokeDescriptor[i] != strd.Template[i] ) return false; return true; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SymmetricAlgorithm.cs
- DataControlCommands.cs
- WindowVisualStateTracker.cs
- StyleCollectionEditor.cs
- Ipv6Element.cs
- SoapMessage.cs
- FileUtil.cs
- BufferAllocator.cs
- FileLevelControlBuilderAttribute.cs
- Util.cs
- Array.cs
- XmlBinaryWriterSession.cs
- ValidatingReaderNodeData.cs
- DesignerSerializerAttribute.cs
- BaseAppDomainProtocolHandler.cs
- ZoneButton.cs
- FileFormatException.cs
- FileDialog.cs
- Translator.cs
- WrappedIUnknown.cs
- GridLengthConverter.cs
- CompositeKey.cs
- LinqDataSource.cs
- FunctionImportElement.cs
- Partitioner.cs
- Polygon.cs
- FixedTextBuilder.cs
- TraceFilter.cs
- MSHTMLHostUtil.cs
- OracleConnection.cs
- LinqDataSourceHelper.cs
- Binding.cs
- RenderContext.cs
- RightsManagementEncryptionTransform.cs
- AttributeProviderAttribute.cs
- Accessible.cs
- IpcClientManager.cs
- GridSplitter.cs
- RoutingEndpointTrait.cs
- FrameworkObject.cs
- SemanticResolver.cs
- EntitySqlQueryCacheEntry.cs
- XPathDocumentNavigator.cs
- SR.cs
- AssemblyBuilder.cs
- DefaultDialogButtons.cs
- PackWebRequest.cs
- SplitContainer.cs
- TreeNodeCollection.cs
- PropertyValueChangedEvent.cs
- AutomationFocusChangedEventArgs.cs
- OdbcStatementHandle.cs
- PenThreadWorker.cs
- TokenBasedSetEnumerator.cs
- Sql8ConformanceChecker.cs
- DataGridColumnEventArgs.cs
- DSASignatureFormatter.cs
- Trigger.cs
- SoapAttributeOverrides.cs
- DataGridColumnCollection.cs
- FileUpload.cs
- WebPartChrome.cs
- ExtensionFile.cs
- OutKeywords.cs
- DeploymentExceptionMapper.cs
- SvcFileManager.cs
- HTMLTagNameToTypeMapper.cs
- TextParagraph.cs
- Rectangle.cs
- LocatorGroup.cs
- XPathBinder.cs
- ResourcePool.cs
- ConfigurationManagerInternalFactory.cs
- MissingFieldException.cs
- CultureSpecificCharacterBufferRange.cs
- ProgressBarRenderer.cs
- StylusButtonEventArgs.cs
- TextLine.cs
- SimpleApplicationHost.cs
- ToolboxComponentsCreatedEventArgs.cs
- SecurityProtocolCorrelationState.cs
- RelationshipDetailsRow.cs
- CodeDelegateInvokeExpression.cs
- TrackingMemoryStreamFactory.cs
- TemplateDefinition.cs
- ArrayElementGridEntry.cs
- OLEDB_Enum.cs
- ContentHostHelper.cs
- Slider.cs
- TypeGeneratedEventArgs.cs
- ProcessModelInfo.cs
- TemplateBaseAction.cs
- ConsoleKeyInfo.cs
- MenuItemCollectionEditor.cs
- EventLogTraceListener.cs
- NonParentingControl.cs
- ReturnEventArgs.cs
- AssemblySettingAttributes.cs
- WebPartTransformer.cs
- HostExecutionContextManager.cs